tensor1 Class Reference

Rank 1 tensor. More...

#include <tensor.h>

Inheritance diagram for tensor1:

tensor

Detailed Description

Rank 1 tensor.

Definition at line 788 of file tensor.h.


Public Member Functions

 tensor1 ()
 Create an empty tensor.
 tensor1 (size_t sz)
 Create a rank 1 tensory of size sz.
virtual double & get (size_t ix)
 Get the element indexed by ix.
virtual const double & get (size_t ix) const
 Get the element indexed by ix.
virtual int set (size_t index, double val)
 Set the element indexed by index to value val.
virtual double & operator[] (size_t ix)
 Get an element using array-like indexing.
virtual double & operator() (size_t ix)
 Get an element using operator().

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