xc
|
Boris Jeremic vector class. More...
#include <BJvector.h>
Public Member Functions | |
BJvector (int order_n=1, double initvalue=0.0) | |
Constructor. | |
BJvector (int order_n, double *initval) | |
Constructor. | |
BJvector (const std::vector< double > &) | |
Constructor. | |
BJvector (const boost::python::list &) | |
Constructor. | |
BJvector (const nDarray &x) | |
BJvector & | operator= (const BJvector &x) |
Assignment operator. | |
double & | val (int subscript,...) |
const double & | val (int subscript,...) const |
double | cval (int subscript,...) const |
![]() | |
BJmatrix (int mrows=1, int columns=1, double initval=0.0) | |
Constructor. | |
BJmatrix (int mrows, int columns, double *initvalues) | |
Constructor. | |
BJmatrix (int mrows, int columns, const std::vector< double > &) | |
Constructor. | |
BJmatrix (int mrows, int columns, const boost::python::list &) | |
BJmatrix (const boost::python::list &l) | |
Constructor (Python interface). | |
BJmatrix (const std::string &flag, int dimension) | |
Constructor. | |
BJmatrix (const std::string &matfile) | |
BJmatrix (const std::string &matfile, const std::string &outfile) | |
BJmatrix (const BJmatrix &x) | |
BJmatrix (const nDarray &x) | |
int | rows (void) const |
int | cols (void) const |
BJmatrix & | operator= (const BJmatrix &rval) |
void | write_standard (const std::string &filename, const std::string &msg="") |
BJmatrix | operator* (BJmatrix &) |
BJmatrix | operator* (double rval) |
BJmatrix | transpose () |
double | determinant () |
BJmatrix | inverse () |
double | mmin () |
double | mmax () |
double | mean () |
double | sum () |
double | variance () |
BJtensor | BJmatrix2BJtensor_1 () |
BJtensor | BJmatrix2BJtensor_2 () |
BJtensor | BJmatrix2BJtensor_22 () |
BJtensor | BJmatrix2BJtensor_3 () |
double * | BJmatrixtoarray (int &) |
void | Output (std::ostream &s) const |
Write to the argument stream. | |
std::string | toString (void) const |
![]() | |
nDarray (int rank_of_nDarray=1, const double &initval=0.0) | |
Constructor. | |
nDarray (const std::vector< int > &pdim, const double *values) | |
Constructor. | |
nDarray (const std::vector< int > &pdim, const std::vector< double > &) | |
Constructor. | |
nDarray (const std::vector< int > &pdim, const boost::python::list &) | |
Constructor. | |
nDarray (const boost::python::list &, const boost::python::list &) | |
Constructor. | |
nDarray (const std::vector< int > &pdim, double initvalue) | |
nDarray (int rows, int cols, double *values) | |
Constructor. Special case for BJmatrix and BJvector. | |
nDarray (int rows, int cols, const std::vector< double > &values) | |
Constructor. Special case for BJmatrix and BJvector. | |
nDarray (int rows, int cols, const boost::python::list &) | |
Constructor. Special case for BJmatrix and BJvector. | |
nDarray (int rows, int cols, double initvalue) | |
nDarray (const std::string &) | |
nDarray (const std::string &flag, const std::vector< int > &pdim) | |
create a unit XC::nDarray | |
void | Initialize (const nDarray &from) |
void | Initialize_all (const nDarray &from) |
void | Reset_to (const double &value) |
Reset data to "value". | |
const double & | operator() (int first) const |
double & | operator() (int first) |
const double & | operator() (int first, int second) const |
double & | operator() (int first, int second) |
const double & | operator() (int first, int second, int third) const |
double & | operator() (int first, int second, int third) |
const double & | operator() (int first, int second, int third, int fourth) const |
double & | operator() (int first, int second, int third, int fourth) |
const double & | val (int subscript,...) const |
double & | val (int subscript,...) |
const double & | val4 (int first, int second, int third, int fourth) const |
double & | val4 (int first, int second, int third, int fourth) |
const double & | cval (int subscript,...) const |
nDarray & | operator+= (const nDarray &) |
nDarray addition | |
nDarray & | operator-= (const nDarray &) |
nDarray | operator+ (const double &rval) |
scalar addition | |
nDarray | operator- (const double &rval) |
scalar subtraction | |
nDarray & | operator*= (const double &rval) |
scalar multiplication | |
nDarray | operator* (const double &rval) const |
scalar multiplication | |
nDarray | operator- () |
unary minus | |
double | sum (void) const |
double | trace (void) const |
bool | operator== (const nDarray &rval) const |
nDarray comparison returns true if they are equal. | |
nDarray | eigenvalues (void) |
nDarray | eigenvectors (void) |
double | Frobenius_norm (void) |
double | General_norm (double p) |
int | rank (void) const |
int | dim (int which) const |
void | output (std::ostream &os) const |
Write this object to the argument stream. | |
void | outputshort (std::ostream &os) const |
nDarray print function | |
void | print (const std::string &name="t", const std::string &msg="Hi there#", std::ostream &os=std::cout) const |
nDarray print function | |
void | printshort (std::ostream &os, const std::string &msg="Hi there#") const |
nDarray print function | |
void | mathprint (std::ostream &os) const |
nDarray print function for mathematica | |
std::string | toString (void) const |
Additional Inherited Members | |
![]() | |
const double * | data (void) const |
void | set_dim (const std::vector< int > &) |
const std::vector< int > & | dim (void) const |
void | rank (int) |
![]() | |
nDarray_rep | pc_nDarray_rep |
Boris Jeremic vector class.