44 #include "EST_TSimpleMatrix.h" 45 #include "EST_TSimpleVector.h" 48 #include "EST_Val_defs.h" 73 EST_FMatrix::default_file_type );
83 void copyin(
float **x,
int rows,
int cols);
172 void make_random_vector(
EST_FVector &M,
const float scale);
174 void make_random_matrix(
EST_FMatrix &M,
const float scale);
176 void make_random_diagonal_matrix(
EST_FMatrix &M,
const float scale);
178 void make_random_symmetric_matrix(
EST_FMatrix &M,
const float scale);
209 int floor_matrix(
EST_FMatrix &M,
const float floor);
238 polynomial_value(
const EST_FVector &coeffs,
const float x);
void column(EST_TVector< float > &cv, int c, int start_r=0, int len=-1)
Make the vector { cv} a window onto column { c}.
EST_FMatrix & operator*=(const float f)
elementwise multiply by scalar
void row(EST_TVector< float > &rv, int r, int start_c=0, int len=-1)
Make the vector { rv} a window onto row { r}.
EST_FMatrix(const EST_FMatrix &a)
copy constructor
EST_FMatrix(int m, int n)
size constructor
EST_write_status save(const EST_String &filename, const EST_String &type=EST_FMatrix::default_file_type)
Save in file (ascii or binary)
EST_FMatrix & operator-=(const EST_FMatrix &a)
Subtract elements of 2 same sized matrices.
EST_FMatrix & operator/=(const float f)
elementwise divide by scalar
EST_FMatrix()
default constructor
EST_FVector()
Default constructor.
EST_read_status load(const EST_String &filename)
Load from file (ascii or binary as defined in file)
INLINE int n() const
number of items in vector.
EST_FVector(int n)
Size constructor.
friend EST_FMatrix operator*(const EST_FMatrix &a, const float x)
Multiply all elements of matrix by { x}.
void copyin(float **x, int rows, int cols)
Copy 2-d array { x} of size { rows x cols} into matrix.
EST_FVector(const EST_FVector &a)
Copy constructor.
EST_read_status est_load(const EST_String &filename)
Load from file in est format (binary/ascii defined in file itself)
EST_FMatrix & operator+=(const EST_FMatrix &a)
Add 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.