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);
135 EST_write_status est_save(
const EST_String &filename,
172void make_random_vector(
EST_FVector &M,
const float scale);
174void make_random_matrix(
EST_FMatrix &M,
const float scale);
176void make_random_diagonal_matrix(
EST_FMatrix &M,
const float scale);
178void make_random_symmetric_matrix(
EST_FMatrix &M,
const float scale);
209int floor_matrix(
EST_FMatrix &M,
const float floor);
238polynomial_value(
const EST_FVector &coeffs,
const float x);
EST_FMatrix & operator+=(const EST_FMatrix &a)
Add elements of 2 same sized matrices.
EST_FMatrix(const EST_FMatrix &a)
copy constructor
EST_FMatrix()
default constructor
EST_read_status est_load(const EST_String &filename)
Load from file in est format (binary/ascii defined in file itself)
friend EST_FMatrix operator*(const EST_FMatrix &a, const float x)
Multiply all elements of matrix by {\tt x}.
void copyin(float **x, int rows, int cols)
Copy 2-d array {\tt x} of size {\tt rows x cols} into matrix.
EST_write_status est_save(const EST_String &filename, const EST_String &type)
Save in file in est format.
EST_FMatrix & operator-=(const EST_FMatrix &a)
Subtract elements of 2 same sized matrices.
EST_FMatrix & operator*=(const float f)
elementwise multiply by scalar
EST_FMatrix & operator/=(const float f)
elementwise divide by scalar
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_read_status load(const EST_String &filename)
Load from file (ascii or binary as defined in file)
EST_FVector()
Default constructor.
EST_read_status load(const EST_String &filename)
load vector from file filename.
EST_read_status est_load(const EST_String &filename)
Load from file in est format (binary/ascii defined in file itself)
EST_FVector & operator*=(const EST_FVector &s)
elementwise multiply
EST_FVector & operator+=(const EST_FVector &s)
elementwise add
EST_FVector & operator/=(const float f)
elementwise divide by scalar
EST_FVector(const EST_FVector &a)
Copy constructor.
EST_FVector(int n)
Size constructor.
EST_write_status save(const EST_String &filename, const EST_String &type)
save vector to file filename.
INLINE int n() const
number of items in vector.