44 #include "EST_TSimpleMatrix.h"
45 #include "EST_TSimpleVector.h"
46 #include "EST_FMatrix.h"
74 EST_DMatrix::default_file_type);
84 void copyin(
double **x,
int rows,
int cols);
139 EST_write_status est_save(
const EST_String &filename,
170 void make_random_vector(
EST_DVector &M,
const double scale);
172 void make_random_matrix(
EST_DMatrix &M,
const double scale);
174 void make_random_diagonal_matrix(
EST_DMatrix &M,
const double scale);
176 void make_random_symmetric_matrix(
EST_DMatrix &M,
const double scale);
207 int floor_matrix(
EST_DMatrix &M,
const double floor);
236 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.
EST_DVector & operator/=(const double d)
elementwise divide by scalar
EST_write_status save(const EST_String &filename, const EST_String &type)
save vector to file filename.
EST_read_status est_load(const EST_String &filename)
Load from file in est format (binary/ascii defined in file itself)
EST_DMatrix(const EST_DMatrix &a)
copy constructor
EST_DVector & operator+=(const EST_DVector &s)
elementwise add
friend EST_DMatrix operator*(const EST_DMatrix &a, const double x)
Multiply all elements of matrix by x.
EST_read_status load(const EST_String &filename)
load vector from file filename.
EST_DVector & operator*=(const EST_DVector &s)
elementwise multiply
EST_DMatrix()
default constructor
EST_DMatrix & operator+=(const EST_DMatrix &a)
Add elements of 2 same sized matrices.
A vector class for double precision floating point numbers. EST_DVector x should be used instead of f...
EST_DVector()
Default constructor.
INLINE int n() const
number of items in vector.
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.
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)
A subclass of EST_TMatrix which copies using memcopy.
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)