CppNoddy
0.92
|
A little (legacy) utility class for passing CppNoddy containers to Fortran library routines. More...
#include <FortranData.h>
Public Member Functions | |
FortranData (std::size_t size) | |
Make an empty FortranData object that is not constructed from a CppNoddy container. More... | |
FortranData (DenseMatrix< double > &matrix, bool transpose=true, int padding=0) | |
Make a FortranData object from a double dense matrix (with potential) for padding the data to avoid cache contention. More... | |
FortranData (DenseMatrix< D_complex > &matrix, bool transpose=true, int padding=0) | |
Make a FortranData object from a complex dense matrix (with potential) for padding the data to avoid cache contention. More... | |
FortranData (BandedMatrix< double > &matrix, bool transpose=true) | |
FortranData (BandedMatrix< D_complex > &matrix, bool transpose=true) | |
FortranData (DenseVector< D_complex > &vector) | |
~FortranData () | |
double * | base () |
Get the pointer to the first element. More... | |
double & | operator[] (const std::size_t &i) |
Get the reference to the first element. More... | |
std::size_t | size () const |
Find the number of stored elements. More... | |
DenseMatrix< double > | to_dense_matrix (std::size_t rows, std::size_t cols) |
Convert the data to a double dense format. More... | |
void | dump () |
Dump the data to standard out. More... | |
A little (legacy) utility class for passing CppNoddy containers to Fortran library routines.
Definition at line 13 of file FortranData.h.
|
inlineexplicit |
Make an empty FortranData object that is not constructed from a CppNoddy container.
Definition at line 19 of file FortranData.h.
References size().
|
inline |
Make a FortranData object from a double dense matrix (with potential) for padding the data to avoid cache contention.
The transpose flag defaults to true in order to return data in column-major format.
matrix | A double dense matrix to convert to Lapack/Fortran format |
transpose | Transpose the matrix to be in column major format |
padding | The number of additional elements to pad the matrix |
Definition at line 29 of file FortranData.h.
References CppNoddy::DenseMatrix< _Type >::matrix_to_vector(), and CppNoddy::DenseMatrix< _Type >::transpose().
|
inline |
Make a FortranData object from a complex dense matrix (with potential) for padding the data to avoid cache contention.
The transpose flag defaults to true in order to return data in column-major format.
matrix | A complex dense matrix to convert to Lapack/Fortran format |
transpose | Transpose the matrix to be in column major format |
padding | The number of additional elements to pad the matrix |
Definition at line 43 of file FortranData.h.
References CppNoddy::DenseMatrix< _Type >::matrix_to_vector(), and CppNoddy::DenseMatrix< _Type >::transpose().
|
inline |
Definition at line 51 of file FortranData.h.
|
inline |
Definition at line 59 of file FortranData.h.
|
inline |
Definition at line 67 of file FortranData.h.
|
inline |
Definition at line 74 of file FortranData.h.
|
inline |
Get the pointer to the first element.
Definition at line 80 of file FortranData.h.
References operator[]().
Referenced by CppNoddy::Utility::multiply().
|
inline |
Dump the data to standard out.
Definition at line 106 of file FortranData.h.
References dump().
Referenced by dump().
|
inline |
Get the reference to the first element.
Definition at line 86 of file FortranData.h.
References operator[]().
Referenced by base(), and operator[]().
|
inline |
Find the number of stored elements.
Definition at line 92 of file FortranData.h.
References size().
Referenced by FortranData(), and size().
|
inline |
Convert the data to a double dense format.
rows | The number of required rows |
cols | The number of required columns |
Definition at line 100 of file FortranData.h.
Referenced by CppNoddy::Utility::multiply().
© 2012
R.E. Hewitt