tensor: numpy file i/o
This commit is contained in:
4
tensor.h
4
tensor.h
@@ -279,6 +279,10 @@ public:
|
||||
//subtensor - todo: more general versions
|
||||
Tensor subtensor1(int i) const; //for one value of rightmost index
|
||||
|
||||
//numpy interface
|
||||
void numpy_write(const char *name, const char *descr="<f8") const;
|
||||
void numpy_read(const char *name);
|
||||
|
||||
//conversions from/to matrix and vector
|
||||
explicit Tensor(const NRVec<T> &x);
|
||||
explicit Tensor(const NRMat<T> &x, bool flat=false);
|
||||
|
||||
Reference in New Issue
Block a user