monolish
0.14.0
MONOlithic LIner equation Solvers for Highly-parallel architecture
|
1D view class More...
#include <monolish_coo.hpp>
Public Member Functions | |
Float * | begin () |
returns begin iterator (include offset) More... | |
Float * | begin () const |
returns begin iterator (include offset) More... | |
Float * | data () |
returns a direct pointer to the vector (dont include offset) More... | |
Float * | data () const |
returns a direct pointer to the original vector (dont include offset) More... | |
Float * | end () |
returns a end iterator More... | |
Float * | end () const |
returns a end iterator More... | |
void | fill (Float value) |
fill vector elements with a scalar value More... | |
size_t | get_device_mem_stat () const |
true: sended, false: not send More... | |
size_t | get_first () const |
get first position More... | |
size_t | get_last () const |
get end position More... | |
size_t | get_nnz () const |
get view1D size (same as size()) More... | |
size_t | get_offset () const |
get first position (same as get_first()) More... | |
Float & | operator[] (const size_t i) |
refetrence to the element at position More... | |
void | print_all (bool force_cpu) const |
void | print_all (bool force_cpu) const |
void | print_all (bool force_cpu) const |
void | print_all (bool force_cpu) const |
void | print_all (bool force_cpu=false) const |
print all elements to standart I/O More... | |
void | resize (size_t N) |
change last postion More... | |
void | set_first (size_t i) |
change first position More... | |
void | set_last (size_t i) |
change last position More... | |
size_t | size () const |
get view1D size (end-start) More... | |
view1D (matrix::Dense< Float > &A, const size_t start, const size_t end) | |
create view1D(start:end) from Dense matrix More... | |
view1D (vector< Float > &x, const size_t start, const size_t end) | |
create view1D(start:end) from vector More... | |
view1D (view1D< matrix::Dense< Float >, Float > &x, const size_t start, const size_t end) | |
create view1D(start:end) from monolish::matrix::Dense More... | |
view1D (view1D< vector< Float >, Float > &x, const size_t start, const size_t end) | |
create view1D(start:end) from monolish::vector More... | |
Private Attributes | |
size_t | first |
size_t | last |
size_t | range |
TYPE & | target |
Float * | target_data |
1D view class
Definition at line 26 of file monolish_coo.hpp.
|
inline |
create view1D(start:end) from vector
x | vector |
start | start position |
end | end position |
Definition at line 61 of file monolish_view1D.hpp.
|
inline |
create view1D(start:end) from Dense matrix
A | Dense matrix |
start | start position |
end | end position |
Definition at line 78 of file monolish_view1D.hpp.
|
inline |
create view1D(start:end) from monolish::vector
x | view1D create from monolish::vector |
start | start position (x.first + start) |
end | end position (x.last + end) |
Definition at line 96 of file monolish_view1D.hpp.
|
inline |
create view1D(start:end) from monolish::matrix::Dense
x | view1D create from monolish::matrix::Dense |
start | start position (x.first + start) |
end | end position (x.last + end) |
Definition at line 114 of file monolish_view1D.hpp.
|
inline |
returns begin iterator (include offset)
Definition at line 221 of file monolish_view1D.hpp.
|
inline |
returns begin iterator (include offset)
Definition at line 213 of file monolish_view1D.hpp.
|
inline |
returns a direct pointer to the vector (dont include offset)
Definition at line 205 of file monolish_view1D.hpp.
|
inline |
returns a direct pointer to the original vector (dont include offset)
Definition at line 197 of file monolish_view1D.hpp.
|
inline |
returns a end iterator
Definition at line 237 of file monolish_view1D.hpp.
|
inline |
returns a end iterator
Definition at line 229 of file monolish_view1D.hpp.
template void monolish::view1D< TYPE, Float >::fill | ( | Float | value | ) |
fill vector elements with a scalar value
value | scalar value |
Definition at line 9 of file fill_view1D.cpp.
|
inline |
true: sended, false: not send
Definition at line 188 of file monolish_view1D.hpp.
|
inline |
get first position
Definition at line 145 of file monolish_view1D.hpp.
|
inline |
get end position
Definition at line 153 of file monolish_view1D.hpp.
|
inline |
get view1D size (same as size())
Definition at line 137 of file monolish_view1D.hpp.
|
inline |
get first position (same as get_first())
Definition at line 161 of file monolish_view1D.hpp.
|
inline |
refetrence to the element at position
i | Position of an element in the vector |
Definition at line 273 of file monolish_view1D.hpp.
void monolish::view1D< monolish::vector< double >, double >::print_all | ( | bool | force_cpu | ) | const |
void monolish::view1D< monolish::matrix::Dense< double >, double >::print_all | ( | bool | force_cpu | ) | const |
void monolish::view1D< monolish::vector< float >, float >::print_all | ( | bool | force_cpu | ) | const |
void monolish::view1D< monolish::matrix::Dense< float >, float >::print_all | ( | bool | force_cpu | ) | const |
void monolish::view1D< TYPE, Float >::print_all | ( | bool | force_cpu = false | ) | const |
print all elements to standart I/O
force_cpu | Ignore device status and output CPU data |
|
inline |
change last postion
N | vector length |
Definition at line 259 of file monolish_view1D.hpp.
|
inline |
|
inline |
|
inline |
get view1D size (end-start)
Definition at line 129 of file monolish_view1D.hpp.
|
private |
Definition at line 46 of file monolish_view1D.hpp.
|
private |
Definition at line 47 of file monolish_view1D.hpp.
|
private |
Definition at line 48 of file monolish_view1D.hpp.
|
private |
Definition at line 44 of file monolish_view1D.hpp.
|
private |
Definition at line 45 of file monolish_view1D.hpp.