fml  0.1-0
Fused Matrix Library
fml::parmat< MAT, VEC, REAL > Class Template Reference

Public Member Functions

 parmat (comm mpi_comm, MAT &data_)
 
 parmat (parmat< MAT, VEC, REAL > &&x)
 
void resize (len_global_t nrows, len_t ncols)
 
void print (uint8_t ndigits=4, bool add_final_blank=true)
 
void info ()
 
void fill_zero ()
 
void fill_val (const REAL v)
 
void fill_linspace (const REAL start, const REAL stop)
 
void fill_eye ()
 
void fill_diag (const VEC &d)
 
void fill_runif (const uint32_t seed, const REAL min=0, const REAL max=1)
 
void fill_runif (const REAL min=0, const REAL max=1)
 
void fill_rnorm (const uint32_t seed, const REAL mean=0, const REAL sd=1)
 
void fill_rnorm (const REAL mean=0, const REAL sd=1)
 
void scale (const REAL s)
 
void rev_cols ()
 
bool any_inf () const
 
bool any_nan () const
 
REAL get (const len_global_t i) const
 
REAL get (const len_global_t i, const len_t j) const
 
void set (const len_global_t i, const REAL v)
 
void set (const len_global_t i, const len_t j, const REAL v)
 
bool operator== (const parmat< MAT, VEC, REAL > &x) const
 
bool operator!= (const parmat< MAT, VEC, REAL > &x) const
 
parmat< MAT, VEC, REAL > & operator= (const parmat< MAT, VEC, REAL > &x)
 
len_global_t nrows () const
 
len_local_t nrows_local () const
 
len_local_t ncols () const
 
len_global_t nrows_before () const
 
comm get_comm () const
 
const MAT & data_obj () const
 
MAT & data_obj ()
 

Protected Member Functions

void num_preceding_rows ()
 
len_t get_local_dim ()
 
void check_index (const len_global_t i) const
 
void check_index (const len_global_t i, const len_t j) const
 

Protected Attributes

MAT data
 
len_global_t m_global
 
comm r
 
len_global_t nb4
 

The documentation for this class was generated from the following file: