Object-oriented Scientific Computing Library: Version 0.910
Public Member Functions
tensor3 Class Reference

Rank 3 tensor.

#include <tensor.h>

Inheritance diagram for tensor3:
tensor

Detailed Description

Definition at line 1111 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)
double & get (size_t ix1, size_t ix2, size_t ix3)
 Get the element indexed by (ix1,ix2,ix3)
const double & get (size_t ix1, size_t ix2, size_t ix3) const
 Get the element indexed by (ix1,ix2,ix3)
void set (size_t ix1, size_t ix2, size_t ix3, double val)
 Set the element indexed by (ix1,ix2,ix3) to value val.
void set (size_t *index, double val)
 Set the element indexed by index to value val.

Member Function Documentation

void tensor3::set ( size_t *  index,
double  val 
) [inline]

(We have to explicitly provide this version since the set() function is overloaded in this child of tensor.)

Definition at line 1152 of file tensor.h.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.