#include <tensor.h>
Definition at line 740 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 *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 ix) |
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(). |
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