tensor3 Class Reference

#include <tensor.h>

Inheritance diagram for tensor3:

tensor

Detailed Description

Rank 3 tensor.

Definition at line 821 of file tensor.h.


Public Member Functions

 tensor3 ()
 Create an empty tensor.
 tensor3 (size_t sz, size_t sz2, size_t sz3)
 Create a rank 3 tensor of size (sz,sz2,sz3).
virtual double get (size_t *index)
 Get the element indexed by index.
virtual int set (size_t *index, double val)
 Set the element indexed by index to value val.
virtual double get (size_t ix1, size_t ix2, size_t ix3)
 Get the element indexed by (ix1,ix2,ix3).
virtual int set (size_t ix1, size_t ix2, size_t ix3, double val)
 Set the element indexed by (ix1,ix2,ix3) to value val.

The documentation for this class was generated from the following file:

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page