Matrix market reader.
Plus de détails...
#include </__w/arcaneframework.github.io/arcaneframework.github.io/framework/arccore/src/alina/arccore/alina/IO.h>
|
| | mm_reader (const std::string &fname) |
| | Open the file by name.
|
| |
| bool | is_symmetric () const |
| | Matrix in the file is symmetric.
|
| |
| bool | is_sparse () const |
| | Matrix in the file is sparse.
|
| |
| bool | is_complex () const |
| | Matrix in the file is complex-valued.
|
| |
| bool | is_integer () const |
| | Matrix in the file is integer-valued.
|
| |
| size_t | rows () const |
| | Number of rows.
|
| |
| size_t | cols () const |
| | Number of rows.
|
| |
| template<typename Idx, typename Val> |
| std::tuple< size_t, size_t > | operator() (std::vector< Idx > &ptr, std::vector< Idx > &col, std::vector< Val > &val, ptrdiff_t row_beg=-1, ptrdiff_t row_end=-1) |
| | Read sparse matrix from the file.
|
| |
| template<typename Val> |
| std::tuple< size_t, size_t > | operator() (std::vector< Val > &val, ptrdiff_t row_beg=-1, ptrdiff_t row_end=-1) |
| | Read dense array from the file.
|
| |
Matrix market reader.
Définition à la ligne 51 du fichier IO.h.
◆ mm_reader()
| Arcane::Alina::IO::mm_reader::mm_reader |
( |
const std::string & | fname | ) |
|
|
inlineexplicit |
Open the file by name.
Définition à la ligne 56 du fichier IO.h.
◆ cols()
| size_t Arcane::Alina::IO::mm_reader::cols |
( |
| ) |
const |
|
inline |
Number of rows.
Définition à la ligne 137 du fichier IO.h.
◆ format_error()
| std::string Arcane::Alina::IO::mm_reader::format_error |
( |
const std::string & | msg = "" | ) |
const |
|
inlineprivate |
Définition à la ligne 309 du fichier IO.h.
◆ is_complex()
| bool Arcane::Alina::IO::mm_reader::is_complex |
( |
| ) |
const |
|
inline |
Matrix in the file is complex-valued.
Définition à la ligne 128 du fichier IO.h.
◆ is_integer()
| bool Arcane::Alina::IO::mm_reader::is_integer |
( |
| ) |
const |
|
inline |
Matrix in the file is integer-valued.
Définition à la ligne 131 du fichier IO.h.
◆ is_sparse()
| bool Arcane::Alina::IO::mm_reader::is_sparse |
( |
| ) |
const |
|
inline |
Matrix in the file is sparse.
Définition à la ligne 125 du fichier IO.h.
◆ is_symmetric()
| bool Arcane::Alina::IO::mm_reader::is_symmetric |
( |
| ) |
const |
|
inline |
Matrix in the file is symmetric.
Définition à la ligne 122 du fichier IO.h.
◆ operator()() [1/2]
template<typename Idx, typename Val>
| std::tuple< size_t, size_t > Arcane::Alina::IO::mm_reader::operator() |
( |
std::vector< Idx > & | ptr, |
|
|
std::vector< Idx > & | col, |
|
|
std::vector< Val > & | val, |
|
|
ptrdiff_t | row_beg = -1, |
|
|
ptrdiff_t | row_end = -1 ) |
|
inline |
◆ operator()() [2/2]
template<typename Val>
| std::tuple< size_t, size_t > Arcane::Alina::IO::mm_reader::operator() |
( |
std::vector< Val > & | val, |
|
|
ptrdiff_t | row_beg = -1, |
|
|
ptrdiff_t | row_end = -1 ) |
|
inline |
Read dense array from the file.
Définition à la ligne 253 du fichier IO.h.
◆ read_value() [1/2]
template<typename T>
| std::enable_if< Alina::is_complex< T >::value, T >::type Arcane::Alina::IO::mm_reader::read_value |
( |
std::istream & | s | ) |
|
|
inlineprivate |
Définition à la ligne 319 du fichier IO.h.
◆ read_value() [2/2]
template<typename T>
| std::enable_if<!Alina::is_complex< T >::value, T >::type Arcane::Alina::IO::mm_reader::read_value |
( |
std::istream & | s | ) |
|
|
inlineprivate |
Définition à la ligne 328 du fichier IO.h.
◆ rows()
| size_t Arcane::Alina::IO::mm_reader::rows |
( |
| ) |
const |
|
inline |
Number of rows.
Définition à la ligne 134 du fichier IO.h.
◆ _complex
| bool Arcane::Alina::IO::mm_reader::_complex |
|
private |
Définition à la ligne 304 du fichier IO.h.
◆ _integer
| bool Arcane::Alina::IO::mm_reader::_integer |
|
private |
Définition à la ligne 305 du fichier IO.h.
◆ _sparse
| bool Arcane::Alina::IO::mm_reader::_sparse |
|
private |
Définition à la ligne 302 du fichier IO.h.
◆ _symmetric
| bool Arcane::Alina::IO::mm_reader::_symmetric |
|
private |
Définition à la ligne 303 du fichier IO.h.
| std::ifstream Arcane::Alina::IO::mm_reader::f |
|
private |
Définition à la ligne 299 du fichier IO.h.
◆ line
| std::string Arcane::Alina::IO::mm_reader::line |
|
private |
Définition à la ligne 300 du fichier IO.h.
◆ ncols
| size_t Arcane::Alina::IO::mm_reader::ncols |
|
private |
Définition à la ligne 307 du fichier IO.h.
◆ nrows
| size_t Arcane::Alina::IO::mm_reader::nrows |
|
private |
Définition à la ligne 307 du fichier IO.h.
La documentation de cette classe a été générée à partir du fichier suivant :