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

Rank 1 tensor_old.

#include <tensor_old.h>

Inheritance diagram for tensor_old1:
tensor_old

Detailed Description

Definition at line 970 of file tensor_old.h.

Public Member Functions

 tensor_old1 ()
 Create an empty tensor_old.
 tensor_old1 (size_t sz)
 Create a rank 1 tensor_oldy of size sz.
double & get (size_t ix)
 Get the element indexed by ix.
const double & get (size_t ix) const
 Get the element indexed by ix.
void set (size_t index, double val)
 Set the element indexed by index to value val.
void set (size_t *index, double val)
 Set the element indexed by index to value val.
double & operator[] (size_t ix)
 Get an element using array-like indexing.
double & operator() (size_t ix)
 Get an element using operator()

Member Function Documentation

void tensor_old1::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_old.)

Definition at line 994 of file tensor_old.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.