monolish
0.17.3-dev.16
MONOlithic LInear equation Solvers for Highly-parallel architecture
|
#include <monolish_dense.hpp>
Public Member Functions | |
Float | at (const size_t i) |
get element A[i/col][icol] (only CPU) More... | |
Float | at (const size_t i) const |
get element A[i/col][jcol] More... | |
Float | at (const size_t i, const size_t j) |
get element A[i][j] (only CPU) More... | |
Float | at (const size_t i, const size_t j) const |
get element A[i][j] More... | |
Float * | begin () |
returns a begin iterator More... | |
const Float * | begin () const |
returns a begin iterator More... | |
void | col (const size_t c, vector< Float > &vec) const |
get column vector More... | |
void | col (const size_t c, view1D< matrix::Dense< Float >, Float > &vec) const |
void | col (const size_t c, view1D< tensor::tensor_Dense< Float >, Float > &vec) const |
void | col (const size_t c, view1D< vector< Float >, Float > &vec) const |
void | convert (const COO< Float > &coo) |
Create Dense matrix from COO matrix. More... | |
void | convert (const Dense< Float > &dense) |
Create Dense matrix from Dense matrix. More... | |
Float * | data () |
returns a direct pointer to the matrix More... | |
const Float * | data () const |
returns a direct pointer to the matrix More... | |
Dense () | |
Dense (const COO< Float > &coo) | |
Create dense matrix from COO matrix. More... | |
Dense (const Dense< Float > &dense) | |
Create Dense matrix from Dense matrix. More... | |
Dense (const Dense< Float > &dense, Float value) | |
Create Dense matrix of the same size as input matrix. More... | |
Dense (const size_t M, const size_t N) | |
Allocate dense matrix. More... | |
Dense (const size_t M, const size_t N, const Float *value) | |
Create dense matrix from array. More... | |
Dense (const size_t M, const size_t N, const Float min, const Float max) | |
Create random dense matrix from dense matrix. More... | |
Dense (const size_t M, const size_t N, const Float min, const Float max, const std::uint32_t seed) | |
Create random dense matrix from dense matrix. More... | |
Dense (const size_t M, const size_t N, const Float value) | |
Create construct dense matrix. More... | |
Dense (const size_t M, const size_t N, const std::initializer_list< Float > &list) | |
Create dense matrix from std::initializer_list. More... | |
Dense (const size_t M, const size_t N, const std::vector< Float > &value) | |
Create dense matrix from std::vector. More... | |
Dense (const size_t M, const size_t N, const vector< Float > &value) | |
Create dense matrix from monolish::vector. More... | |
Dense (const view_Dense< matrix::Dense< Float >, Float > &dense) | |
Create Dense matrix from view Dense matrix. More... | |
Dense (const view_Dense< tensor::tensor_Dense< Float >, Float > &dense) | |
Create Dense matrix from view Dense matrix. More... | |
Dense (const view_Dense< vector< Float >, Float > &dense) | |
Create Dense matrix from view Dense matrix. More... | |
void | device_free () const |
free data on GPU More... | |
void | diag (vector< Float > &vec) const |
get diag. vector More... | |
void | diag (view1D< matrix::Dense< Float >, Float > &vec) const |
void | diag (view1D< tensor::tensor_Dense< Float >, Float > &vec) const |
void | diag (view1D< vector< Float >, Float > &vec) const |
void | diag_add (const Float alpha) |
Scalar and diag. vector of Dense format matrix add. More... | |
void | diag_add (const vector< Float > &vec) |
Vector and diag. vector of Dense format matrix add. More... | |
void | diag_add (const view1D< matrix::Dense< Float >, Float > &vec) |
void | diag_add (const view1D< tensor::tensor_Dense< Float >, Float > &vec) |
void | diag_add (const view1D< vector< Float >, Float > &vec) |
void | diag_div (const Float alpha) |
Scalar and diag. vector of Dense format matrix div. More... | |
void | diag_div (const vector< Float > &vec) |
Vector and diag. vector of Dense format matrix div. More... | |
void | diag_div (const view1D< matrix::Dense< Float >, Float > &vec) |
void | diag_div (const view1D< tensor::tensor_Dense< Float >, Float > &vec) |
void | diag_div (const view1D< vector< Float >, Float > &vec) |
void | diag_mul (const Float alpha) |
Scalar and diag. vector of Dense format matrix mul. More... | |
void | diag_mul (const vector< Float > &vec) |
Vector and diag. vector of Dense format matrix mul. More... | |
void | diag_mul (const view1D< matrix::Dense< Float >, Float > &vec) |
void | diag_mul (const view1D< tensor::tensor_Dense< Float >, Float > &vec) |
void | diag_mul (const view1D< vector< Float >, Float > &vec) |
void | diag_sub (const Float alpha) |
Scalar and diag. vector of Dense format matrix sub. More... | |
void | diag_sub (const vector< Float > &vec) |
Vector and diag. vector of Dense format matrix sub. More... | |
void | diag_sub (const view1D< matrix::Dense< Float >, Float > &vec) |
void | diag_sub (const view1D< tensor::tensor_Dense< Float >, Float > &vec) |
void | diag_sub (const view1D< vector< Float >, Float > &vec) |
Float * | end () |
returns a end iterator More... | |
const Float * | end () const |
returns a end iterator More... | |
bool | equal (const Dense< Float > &mat, bool compare_cpu_and_device=false) const |
Comparing matrices (A == mat) More... | |
void | fill (Float value) |
fill matrix elements with a scalar value More... | |
size_t | get_alloc_nnz () const |
get # of alloced non-zeros More... | |
size_t | get_col () const |
get # of col More... | |
double | get_data_size () const |
Memory data space required by the matrix. More... | |
bool | get_device_mem_stat () const |
true: sended, false: not send More... | |
size_t | get_first () const |
get first position More... | |
std::shared_ptr< bool > | get_gpu_status () const |
gpu status shared pointer More... | |
size_t | get_nnz () const |
get # of non-zeros More... | |
size_t | get_offset () const |
get first position (same as get_first()) More... | |
size_t | get_row () const |
get # of row More... | |
void | insert (const size_t i, const Float Val) |
set element A[i/col][jcol] More... | |
void | insert (const size_t i, const size_t j, const Float Val) |
set element A[i][j] More... | |
void | move (const tensor::tensor_Dense< Float > &tensor_dense) |
void | move (const tensor::tensor_Dense< Float > &tensor_dense, int rowN, int colN) |
void | move (const view_tensor_Dense< matrix::Dense< Float >, Float > &tensor_dense) |
void | move (const view_tensor_Dense< matrix::Dense< Float >, Float > &tensor_dense, int rowN, int colN) |
void | move (const view_tensor_Dense< tensor::tensor_Dense< Float >, Float > &tensor_dense) |
void | move (const view_tensor_Dense< tensor::tensor_Dense< Float >, Float > &tensor_dense, int rowN, int colN) |
void | move (const view_tensor_Dense< vector< Float >, Float > &tensor_dense) |
void | move (const view_tensor_Dense< vector< Float >, Float > &tensor_dense, int rowN, int colN) |
void | nonfree_recv () |
recv. data to GPU (w/o free) More... | |
bool | operator!= (const Dense< Float > &mat) const |
Comparing matrices (A != mat) More... | |
void | operator= (const Dense< Float > &mat) |
matrix copy More... | |
void | operator= (const view_Dense< matrix::Dense< Float >, Float > &mat) |
matrix copy More... | |
void | operator= (const view_Dense< tensor::tensor_Dense< Float >, Float > &mat) |
matrix copy More... | |
void | operator= (const view_Dense< vector< Float >, Float > &mat) |
matrix copy More... | |
bool | operator== (const Dense< Float > &mat) const |
Comparing matrices (A == mat) More... | |
Float & | operator[] (size_t i) |
reference to the element at position (v[i]) More... | |
void | print_all (bool force_cpu=false) const |
print all elements to standard I/O More... | |
void | recv () |
recv. data to GPU, and free data on GPU More... | |
void | reshape (const size_t row, const size_t col) |
Reshape matrix. More... | |
void | resize (size_t N, Float Val=0) |
resize matrix value More... | |
void | row (const size_t r, vector< Float > &vec) const |
get row vector More... | |
void | row (const size_t r, view1D< matrix::Dense< Float >, Float > &vec) const |
void | row (const size_t r, view1D< tensor::tensor_Dense< Float >, Float > &vec) const |
void | row (const size_t r, view1D< vector< Float >, Float > &vec) const |
void | send () const |
send data to GPU More... | |
void | set_col (const size_t M) |
Set column number. More... | |
void | set_first (size_t i) |
Set # of non-zero elements. More... | |
void | set_ptr (const size_t M, const size_t N, const Float *value) |
Set Dense array from std::vector. More... | |
void | set_ptr (const size_t M, const size_t N, const Float value) |
Set Dense array from std::vector. More... | |
void | set_ptr (const size_t M, const size_t N, const std::vector< Float > &value) |
Set Dense array from std::vector. More... | |
void | set_row (const size_t N) |
Set row number. More... | |
void | transpose () |
get transposed matrix (A = A^T) More... | |
void | transpose (const Dense &B) |
create transposed matrix from Dense format matrix (A = B^T) More... | |
std::string | type () const |
get format name "Dense" More... | |
~Dense () | |
destructor of Dense matrix, free GPU memory More... | |
Public Attributes | |
size_t | alloc_nnz = 0 |
alloced matrix size More... | |
std::shared_ptr< Float > | val |
Dense format value (pointer) More... | |
bool | val_create_flag = false |
matrix create flag; More... | |
size_t | val_nnz = 0 |
# of non-zero element (M * N) More... | |
Private Attributes | |
size_t | colN |
# of col More... | |
size_t | first = 0 |
first position of data array More... | |
std::shared_ptr< bool > | gpu_status = std::make_shared<bool>(false) |
# of non-zero element (M * N) More... | |
size_t | rowN |
# of row More... | |
Dense format Matrix.
Definition at line 30 of file monolish_dense.hpp.
|
inline |
Definition at line 78 of file monolish_dense.hpp.
|
inline |
Create dense matrix from COO matrix.
coo | input COO matrix (size M x N) |
Definition at line 108 of file monolish_dense.hpp.
monolish::matrix::Dense< Float >::Dense | ( | const Dense< Float > & | dense | ) |
monolish::matrix::Dense< Float >::Dense | ( | const Dense< Float > & | dense, |
Float | value | ||
) |
Create Dense matrix of the same size as input matrix.
dense | input Dense matrix |
value | the value to initialize elements |
dense.gpu_status == true
; coping data on CPU and GPU respectivelymonolish::matrix::Dense< Float >::Dense | ( | const view_Dense< vector< Float >, Float > & | dense | ) |
monolish::matrix::Dense< Float >::Dense | ( | const view_Dense< matrix::Dense< Float >, Float > & | dense | ) |
monolish::matrix::Dense< Float >::Dense | ( | const view_Dense< tensor::tensor_Dense< Float >, Float > & | dense | ) |
monolish::matrix::Dense< Float >::Dense | ( | const size_t | M, |
const size_t | N | ||
) |
Allocate dense matrix.
M | # of row |
N | # of col |
monolish::matrix::Dense< Float >::Dense | ( | const size_t | M, |
const size_t | N, | ||
const Float * | value | ||
) |
Create dense matrix from array.
M | # of row |
N | # of col |
value | value array |
monolish::matrix::Dense< Float >::Dense | ( | const size_t | M, |
const size_t | N, | ||
const std::vector< Float > & | value | ||
) |
Create dense matrix from std::vector.
M | # of row |
N | # of col |
value | value std::vector (size M x N) |
monolish::matrix::Dense< Float >::Dense | ( | const size_t | M, |
const size_t | N, | ||
const vector< Float > & | value | ||
) |
Create dense matrix from monolish::vector.
M | # of row |
N | # of col |
value | value std::vector (size M x N) |
monolish::matrix::Dense< Float >::Dense | ( | const size_t | M, |
const size_t | N, | ||
const std::initializer_list< Float > & | list | ||
) |
Create dense matrix from std::initializer_list.
M | # of row |
N | # of col |
list | value std::initializer_list (size M x N) |
monolish::matrix::Dense< Float >::Dense | ( | const size_t | M, |
const size_t | N, | ||
const Float | min, | ||
const Float | max | ||
) |
Create random dense matrix from dense matrix.
M | # of row |
N | # of col |
min | rand min |
max | rand max |
monolish::matrix::Dense< Float >::Dense | ( | const size_t | M, |
const size_t | N, | ||
const Float | min, | ||
const Float | max, | ||
const std::uint32_t | seed | ||
) |
Create random dense matrix from dense matrix.
M | # of row |
N | # of col |
min | rand min |
max | rand max |
seed | random seed |
monolish::matrix::Dense< Float >::Dense | ( | const size_t | M, |
const size_t | N, | ||
const Float | value | ||
) |
Create construct dense matrix.
M | # of row |
N | # of col |
value | value |
|
inline |
destructor of Dense matrix, free GPU memory
Definition at line 591 of file monolish_dense.hpp.
|
inline |
get element A[i/col][icol] (only CPU)
i | index |
Definition at line 481 of file monolish_dense.hpp.
Float monolish::matrix::Dense< Float >::at | ( | const size_t | i | ) | const |
get element A[i/col][jcol]
i | index |
|
inline |
get element A[i][j] (only CPU)
i | row |
j | col |
Definition at line 495 of file monolish_dense.hpp.
Float monolish::matrix::Dense< Float >::at | ( | const size_t | i, |
const size_t | j | ||
) | const |
get element A[i][j]
i | row |
j | col |
|
inline |
returns a begin iterator
Definition at line 687 of file monolish_dense.hpp.
|
inline |
returns a begin iterator
Definition at line 679 of file monolish_dense.hpp.
void monolish::matrix::Dense< Float >::col | ( | const size_t | c, |
vector< Float > & | vec | ||
) | const |
get column vector
c | column number |
vec | column vector |
void monolish::matrix::Dense< Float >::col | ( | const size_t | c, |
view1D< matrix::Dense< Float >, Float > & | vec | ||
) | const |
void monolish::matrix::Dense< Float >::col | ( | const size_t | c, |
view1D< tensor::tensor_Dense< Float >, Float > & | vec | ||
) | const |
void monolish::matrix::Dense< Float >::col | ( | const size_t | c, |
view1D< vector< Float >, Float > & | vec | ||
) | const |
void monolish::matrix::Dense< Float >::convert | ( | const COO< Float > & | coo | ) |
void monolish::matrix::Dense< Float >::convert | ( | const Dense< Float > & | dense | ) |
|
inline |
returns a direct pointer to the matrix
Definition at line 613 of file monolish_dense.hpp.
|
inline |
returns a direct pointer to the matrix
Definition at line 605 of file monolish_dense.hpp.
void monolish::matrix::Dense< Float >::device_free | ( | ) | const |
free data on GPU
void monolish::matrix::Dense< Float >::diag | ( | vector< Float > & | vec | ) | const |
get diag. vector
vec | diag. vector |
void monolish::matrix::Dense< Float >::diag | ( | view1D< matrix::Dense< Float >, Float > & | vec | ) | const |
void monolish::matrix::Dense< Float >::diag | ( | view1D< tensor::tensor_Dense< Float >, Float > & | vec | ) | const |
void monolish::matrix::Dense< Float >::diag | ( | view1D< vector< Float >, Float > & | vec | ) | const |
void monolish::matrix::Dense< Float >::diag_add | ( | const Float | alpha | ) |
Scalar and diag. vector of Dense format matrix add.
alpha | scalar |
void monolish::matrix::Dense< Float >::diag_add | ( | const vector< Float > & | vec | ) |
Vector and diag. vector of Dense format matrix add.
vec | vector |
void monolish::matrix::Dense< Float >::diag_add | ( | const view1D< matrix::Dense< Float >, Float > & | vec | ) |
void monolish::matrix::Dense< Float >::diag_add | ( | const view1D< tensor::tensor_Dense< Float >, Float > & | vec | ) |
void monolish::matrix::Dense< Float >::diag_add | ( | const view1D< vector< Float >, Float > & | vec | ) |
void monolish::matrix::Dense< Float >::diag_div | ( | const Float | alpha | ) |
Scalar and diag. vector of Dense format matrix div.
alpha | scalar |
void monolish::matrix::Dense< Float >::diag_div | ( | const vector< Float > & | vec | ) |
Vector and diag. vector of Dense format matrix div.
vec | vector |
void monolish::matrix::Dense< Float >::diag_div | ( | const view1D< matrix::Dense< Float >, Float > & | vec | ) |
void monolish::matrix::Dense< Float >::diag_div | ( | const view1D< tensor::tensor_Dense< Float >, Float > & | vec | ) |
void monolish::matrix::Dense< Float >::diag_div | ( | const view1D< vector< Float >, Float > & | vec | ) |
void monolish::matrix::Dense< Float >::diag_mul | ( | const Float | alpha | ) |
Scalar and diag. vector of Dense format matrix mul.
alpha | scalar |
void monolish::matrix::Dense< Float >::diag_mul | ( | const vector< Float > & | vec | ) |
Vector and diag. vector of Dense format matrix mul.
vec | vector |
void monolish::matrix::Dense< Float >::diag_mul | ( | const view1D< matrix::Dense< Float >, Float > & | vec | ) |
void monolish::matrix::Dense< Float >::diag_mul | ( | const view1D< tensor::tensor_Dense< Float >, Float > & | vec | ) |
void monolish::matrix::Dense< Float >::diag_mul | ( | const view1D< vector< Float >, Float > & | vec | ) |
void monolish::matrix::Dense< Float >::diag_sub | ( | const Float | alpha | ) |
Scalar and diag. vector of Dense format matrix sub.
alpha | scalar |
void monolish::matrix::Dense< Float >::diag_sub | ( | const vector< Float > & | vec | ) |
Vector and diag. vector of Dense format matrix sub.
vec | vector |
void monolish::matrix::Dense< Float >::diag_sub | ( | const view1D< matrix::Dense< Float >, Float > & | vec | ) |
void monolish::matrix::Dense< Float >::diag_sub | ( | const view1D< tensor::tensor_Dense< Float >, Float > & | vec | ) |
void monolish::matrix::Dense< Float >::diag_sub | ( | const view1D< vector< Float >, Float > & | vec | ) |
|
inline |
returns a end iterator
Definition at line 705 of file monolish_dense.hpp.
|
inline |
returns a end iterator
Definition at line 695 of file monolish_dense.hpp.
bool monolish::matrix::Dense< Float >::equal | ( | const Dense< Float > & | mat, |
bool | compare_cpu_and_device = false |
||
) | const |
Comparing matrices (A == mat)
mat | Dense matrix |
compare_cpu_and_device | compare data on both CPU and GPU |
void monolish::matrix::Dense< Float >::fill | ( | Float | value | ) |
fill matrix elements with a scalar value
value | scalar value |
|
inline |
get # of alloced non-zeros
Definition at line 355 of file monolish_dense.hpp.
|
inline |
get # of col
Definition at line 337 of file monolish_dense.hpp.
|
inline |
Memory data space required by the matrix.
Definition at line 445 of file monolish_dense.hpp.
|
inline |
true: sended, false: not send
Definition at line 574 of file monolish_dense.hpp.
|
inline |
get first position
Definition at line 363 of file monolish_dense.hpp.
|
inline |
gpu status shared pointer
Definition at line 580 of file monolish_dense.hpp.
|
inline |
get # of non-zeros
Definition at line 346 of file monolish_dense.hpp.
|
inline |
get first position (same as get_first())
Definition at line 371 of file monolish_dense.hpp.
|
inline |
get # of row
Definition at line 328 of file monolish_dense.hpp.
void monolish::matrix::Dense< Float >::insert | ( | const size_t | i, |
const Float | Val | ||
) |
set element A[i/col][jcol]
i | index |
Val | scalar value |
void monolish::matrix::Dense< Float >::insert | ( | const size_t | i, |
const size_t | j, | ||
const Float | Val | ||
) |
set element A[i][j]
i | row |
j | col |
Val | scalar value |
void monolish::matrix::Dense< Float >::move | ( | const tensor::tensor_Dense< Float > & | tensor_dense | ) |
void monolish::matrix::Dense< Float >::move | ( | const tensor::tensor_Dense< Float > & | tensor_dense, |
int | rowN, | ||
int | colN | ||
) |
void monolish::matrix::Dense< Float >::move | ( | const view_tensor_Dense< matrix::Dense< Float >, Float > & | tensor_dense | ) |
void monolish::matrix::Dense< Float >::move | ( | const view_tensor_Dense< matrix::Dense< Float >, Float > & | tensor_dense, |
int | rowN, | ||
int | colN | ||
) |
void monolish::matrix::Dense< Float >::move | ( | const view_tensor_Dense< tensor::tensor_Dense< Float >, Float > & | tensor_dense | ) |
void monolish::matrix::Dense< Float >::move | ( | const view_tensor_Dense< tensor::tensor_Dense< Float >, Float > & | tensor_dense, |
int | rowN, | ||
int | colN | ||
) |
void monolish::matrix::Dense< Float >::move | ( | const view_tensor_Dense< vector< Float >, Float > & | tensor_dense | ) |
void monolish::matrix::Dense< Float >::move | ( | const view_tensor_Dense< vector< Float >, Float > & | tensor_dense, |
int | rowN, | ||
int | colN | ||
) |
void monolish::matrix::Dense< Float >::nonfree_recv | ( | ) |
recv. data to GPU (w/o free)
bool monolish::matrix::Dense< Float >::operator!= | ( | const Dense< Float > & | mat | ) | const |
Comparing matrices (A != mat)
mat | Dense matrix |
gpu_status == true
; compare data on GPUvoid monolish::matrix::Dense< Float >::operator= | ( | const Dense< Float > & | mat | ) |
matrix copy
mat | Dense matrix |
gpu_statius == true
; coping data on CPUvoid monolish::matrix::Dense< Float >::operator= | ( | const view_Dense< matrix::Dense< Float >, Float > & | mat | ) |
matrix copy
mat | Dense matrix |
gpu_statius == true
; coping data on CPUvoid monolish::matrix::Dense< Float >::operator= | ( | const view_Dense< tensor::tensor_Dense< Float >, Float > & | mat | ) |
matrix copy
mat | Dense matrix |
gpu_statius == true
; coping data on CPUvoid monolish::matrix::Dense< Float >::operator= | ( | const view_Dense< vector< Float >, Float > & | mat | ) |
matrix copy
mat | Dense matrix |
gpu_statius == true
; coping data on CPUbool monolish::matrix::Dense< Float >::operator== | ( | const Dense< Float > & | mat | ) | const |
Comparing matrices (A == mat)
mat | Dense matrix |
gpu_status == true
; compare data on GPU
|
inline |
reference to the element at position (v[i])
i | Position of an element in the vector |
Definition at line 828 of file monolish_dense.hpp.
void monolish::matrix::Dense< Float >::print_all | ( | bool | force_cpu = false | ) | const |
print all elements to standard I/O
force_cpu | Ignore device status and output CPU data |
void monolish::matrix::Dense< Float >::recv | ( | ) |
recv. data to GPU, and free data on GPU
void monolish::matrix::Dense< Float >::reshape | ( | const size_t | row, |
const size_t | col | ||
) |
Reshape matrix.
row | |
col |
|
inline |
resize matrix value
N | matrix size |
Definition at line 623 of file monolish_dense.hpp.
void monolish::matrix::Dense< Float >::row | ( | const size_t | r, |
vector< Float > & | vec | ||
) | const |
get row vector
r | row number |
vec | row vector |
void monolish::matrix::Dense< Float >::row | ( | const size_t | r, |
view1D< matrix::Dense< Float >, Float > & | vec | ||
) | const |
void monolish::matrix::Dense< Float >::row | ( | const size_t | r, |
view1D< tensor::tensor_Dense< Float >, Float > & | vec | ||
) | const |
void monolish::matrix::Dense< Float >::row | ( | const size_t | r, |
view1D< vector< Float >, Float > & | vec | ||
) | const |
void monolish::matrix::Dense< Float >::send | ( | ) | const |
send data to GPU
|
inline |
Set column number.
M | # of col
|
Definition at line 389 of file monolish_dense.hpp.
|
inline |
Set # of non-zero elements.
NZ | # of non-zero elements
|
change first position
Definition at line 405 of file monolish_dense.hpp.
void monolish::matrix::Dense< Float >::set_ptr | ( | const size_t | M, |
const size_t | N, | ||
const Float * | value | ||
) |
Set Dense array from std::vector.
M | # of row |
N | # of col |
value | value (size nnz) |
void monolish::matrix::Dense< Float >::set_ptr | ( | const size_t | M, |
const size_t | N, | ||
const Float | value | ||
) |
Set Dense array from std::vector.
M | # of row |
N | # of col |
value | value (size nnz) |
void monolish::matrix::Dense< Float >::set_ptr | ( | const size_t | M, |
const size_t | N, | ||
const std::vector< Float > & | value | ||
) |
Set Dense array from std::vector.
M | # of row |
N | # of col |
value | value (size nnz) |
|
inline |
Set row number.
N | # of row
|
Definition at line 380 of file monolish_dense.hpp.
void monolish::matrix::Dense< Float >::transpose | ( | ) |
get transposed matrix (A = A^T)
void monolish::matrix::Dense< Float >::transpose | ( | const Dense< Float > & | B | ) |
|
inline |
get format name "Dense"
Definition at line 414 of file monolish_dense.hpp.
size_t monolish::matrix::Dense< Float >::alloc_nnz = 0 |
alloced matrix size
Definition at line 71 of file monolish_dense.hpp.
|
private |
# of col
Definition at line 40 of file monolish_dense.hpp.
|
private |
first position of data array
Definition at line 55 of file monolish_dense.hpp.
|
mutableprivate |
# of non-zero element (M * N)
true: sended, false: not send
Definition at line 50 of file monolish_dense.hpp.
|
private |
# of row
Definition at line 35 of file monolish_dense.hpp.
std::shared_ptr<Float> monolish::matrix::Dense< Float >::val |
Dense format value (pointer)
Definition at line 61 of file monolish_dense.hpp.
bool monolish::matrix::Dense< Float >::val_create_flag = false |
matrix create flag;
Definition at line 76 of file monolish_dense.hpp.
size_t monolish::matrix::Dense< Float >::val_nnz = 0 |
# of non-zero element (M * N)
Definition at line 66 of file monolish_dense.hpp.