44 #include "EST_TSimpleMatrix.h" 45 #include "EST_TSimpleVector.h" 46 #include "EST_FMatrix.h" 71 EST_DMatrix::default_file_type);
81 void copyin(
double **x,
int rows,
int cols);
165 void make_random_vector(
EST_DVector &M,
const double scale);
167 void make_random_matrix(
EST_DMatrix &M,
const double scale);
169 void make_random_diagonal_matrix(
EST_DMatrix &M,
const double scale);
171 void make_random_symmetric_matrix(
EST_DMatrix &M,
const double scale);
202 int floor_matrix(
EST_DMatrix &M,
const double floor);
231 polynomial_value(
const EST_DVector &coeffs,
const double x);
EST_write_status save(const EST_String &filename, const EST_String &type=EST_DMatrix::default_file_type)
Save in file (ascii or binary)
EST_DVector(const EST_DVector &a)
Copy constructor.
void column(EST_TVector< double > &cv, int c, int start_r=0, int len=-1)
Make the vector { cv} a window onto column { c}.
void row(EST_TVector< double > &rv, int r, int start_c=0, int len=-1)
Make the vector { rv} a window onto row { r}.
EST_DMatrix(const EST_DMatrix &a)
copy constructor
friend EST_DMatrix operator*(const EST_DMatrix &a, const double x)
Multiply all elements of matrix by { x}.
EST_DMatrix()
default constructor
EST_DMatrix & operator+=(const EST_DMatrix &a)
Add elements of 2 same sized matrices.
EST_DVector()
Default constructor.
EST_DMatrix & operator*=(const double f)
elementwise multiply by scalar
void copyin(double **x, int rows, int cols)
Copy 2-d array { x} of size { rows x cols} into matrix.
INLINE int n() const
number of items in vector.
EST_DMatrix & operator/=(const double f)
elementwise divide by scalar
EST_DVector(int n)
Size constructor.
EST_read_status load(const EST_String &filename)
Load from file (ascii or binary as defined in file)
EST_DMatrix & operator-=(const EST_DMatrix &a)
Subtract elements of 2 same sized matrices.
EST_write_status est_save(const EST_String &filename, const EST_String &type)
Save in file in est format.
EST_DMatrix(int m, int n)
size constructor
EST_read_status est_load(const EST_String &filename)
Load from file in est format (binary/ascii defined in file itself)