#include <tensor.h>
Definition at line 817 of file tensor.h.
Public Member Functions | |
tensor2 () | |
Create an empty tensor. | |
tensor2 (size_t sz, size_t sz2) | |
Create a rank 2 tensor of size (sz,sz2). | |
virtual double & | get (size_t ix1, size_t ix2) |
Get the element indexed by (ix1,ix2). | |
virtual const double & | get (size_t ix1, size_t ix2) const |
Get the element indexed by (ix1,ix2). | |
virtual int | set (size_t ix1, size_t ix2, double val) |
Set the element indexed by (ix1,ix2) to value val . | |
virtual double & | operator() (size_t ix, size_t iy) |
Get the element indexed by (ix1,ix2). |
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.
Project hosting provided by
,
O2scl Sourceforge Project Page