tensor_grid2 Class Reference

Rank 2 tensor with a grid.

#include <tensor.h>

Inheritance diagram for tensor_grid2:

tensor_grid tensor

Detailed Description

Definition at line 925 of file tensor.h.


Public Member Functions

 tensor_grid2 ()
 Create an empty tensor.
 tensor_grid2 (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.

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