ensign.sptensor.SPTensor.write

SPTensor.write(self, outdir)[source]

Writes a text representation of the sparse tensor to the given directory. If the directory does not exist, it will be created. If the directory exists, it will be replaced.

Parameters
outdirstr

Absolute or relative path of the directory that will contain the sparse tensor