PLaSK library
|
Classes | |
class | Array1D |
class | Array2D |
class | Array3D |
class | Fortran_Array1D |
class | Fortran_Array2D |
class | Fortran_Array3D |
class | i_refvec |
class | Matrix |
class | Sparse_Matrix_CompRow |
Read-only view of a sparse matrix in compressed-row storage format. More... | |
class | Stopwatch |
class | Vector |
[Deprecatred] Value-based vector class from pre-1.0 TNT version. More... | |
Typedefs | |
typedef TNT_SUBSCRIPT_TYPE | Subscript |
Functions | |
template<class T > | |
std::ostream & | operator<< (std::ostream &s, const Array1D< T > &A) |
template<class T > | |
std::istream & | operator>> (std::istream &s, Array1D< T > &A) |
template<class T > | |
Array1D< T > | operator+ (const Array1D< T > &A, const Array1D< T > &B) |
template<class T > | |
Array1D< T > | operator- (const Array1D< T > &A, const Array1D< T > &B) |
template<class T > | |
Array1D< T > | operator* (const Array1D< T > &A, const Array1D< T > &B) |
template<class T > | |
Array1D< T > | operator/ (const Array1D< T > &A, const Array1D< T > &B) |
template<class T > | |
Array1D< T > & | operator+= (Array1D< T > &A, const Array1D< T > &B) |
template<class T > | |
Array1D< T > & | operator-= (Array1D< T > &A, const Array1D< T > &B) |
template<class T > | |
Array1D< T > & | operator*= (Array1D< T > &A, const Array1D< T > &B) |
template<class T > | |
Array1D< T > & | operator/= (Array1D< T > &A, const Array1D< T > &B) |
template<class T > | |
std::ostream & | operator<< (std::ostream &s, const Array2D< T > &A) |
template<class T > | |
std::istream & | operator>> (std::istream &s, Array2D< T > &A) |
template<class T > | |
Array2D< T > | operator+ (const Array2D< T > &A, const Array2D< T > &B) |
template<class T > | |
Array2D< T > | operator- (const Array2D< T > &A, const Array2D< T > &B) |
template<class T > | |
Array2D< T > | operator* (const Array2D< T > &A, const Array2D< T > &B) |
template<class T > | |
Array2D< T > | operator/ (const Array2D< T > &A, const Array2D< T > &B) |
template<class T > | |
Array2D< T > & | operator+= (Array2D< T > &A, const Array2D< T > &B) |
template<class T > | |
Array2D< T > & | operator-= (Array2D< T > &A, const Array2D< T > &B) |
template<class T > | |
Array2D< T > & | operator*= (Array2D< T > &A, const Array2D< T > &B) |
template<class T > | |
Array2D< T > & | operator/= (Array2D< T > &A, const Array2D< T > &B) |
template<class T > | |
Array2D< T > | matmult (const Array2D< T > &A, const Array2D< T > &B) |
Matrix Multiply: compute C = A*B, where C[i][j] is the dot-product of row i of A and column j of B. | |
template<class T > | |
std::ostream & | operator<< (std::ostream &s, const Array3D< T > &A) |
template<class T > | |
std::istream & | operator>> (std::istream &s, Array3D< T > &A) |
template<class T > | |
Array3D< T > | operator+ (const Array3D< T > &A, const Array3D< T > &B) |
template<class T > | |
Array3D< T > | operator- (const Array3D< T > &A, const Array3D< T > &B) |
template<class T > | |
Array3D< T > | operator* (const Array3D< T > &A, const Array3D< T > &B) |
template<class T > | |
Array3D< T > | operator/ (const Array3D< T > &A, const Array3D< T > &B) |
template<class T > | |
Array3D< T > & | operator+= (Array3D< T > &A, const Array3D< T > &B) |
template<class T > | |
Array3D< T > & | operator-= (Array3D< T > &A, const Array3D< T > &B) |
template<class T > | |
Array3D< T > & | operator*= (Array3D< T > &A, const Array3D< T > &B) |
template<class T > | |
Array3D< T > & | operator/= (Array3D< T > &A, const Array3D< T > &B) |
template<class T > | |
std::ostream & | operator<< (std::ostream &s, const Matrix< T > &A) |
template<class T > | |
std::istream & | operator>> (std::istream &s, Matrix< T > &A) |
template<class T > | |
Matrix< T > | operator+ (const Matrix< T > &A, const Matrix< T > &B) |
template<class T > | |
Matrix< T > | operator- (const Matrix< T > &A, const Matrix< T > &B) |
template<class T > | |
Matrix< T > | mult_element (const Matrix< T > &A, const Matrix< T > &B) |
template<class T > | |
Matrix< T > | transpose (const Matrix< T > &A) |
template<class T > | |
Matrix< T > | matmult (const Matrix< T > &A, const Matrix< T > &B) |
template<class T > | |
Matrix< T > | operator* (const Matrix< T > &A, const Matrix< T > &B) |
template<class T > | |
int | matmult (Matrix< T > &C, const Matrix< T > &A, const Matrix< T > &B) |
template<class T > | |
Vector< T > | matmult (const Matrix< T > &A, const Vector< T > &x) |
template<class T > | |
Vector< T > | operator* (const Matrix< T > &A, const Vector< T > &x) |
template<class T > | |
std::ostream & | operator<< (std::ostream &s, const Fortran_Array1D< T > &A) |
Write an array to a character outstream. | |
template<class T > | |
std::istream & | operator>> (std::istream &s, Fortran_Array1D< T > &A) |
Read an array from a character stream. | |
template<class T > | |
Fortran_Array1D< T > | operator+ (const Fortran_Array1D< T > &A, const Fortran_Array1D< T > &B) |
template<class T > | |
Fortran_Array1D< T > | operator- (const Fortran_Array1D< T > &A, const Fortran_Array1D< T > &B) |
template<class T > | |
Fortran_Array1D< T > | operator* (const Fortran_Array1D< T > &A, const Fortran_Array1D< T > &B) |
template<class T > | |
Fortran_Array1D< T > | operator/ (const Fortran_Array1D< T > &A, const Fortran_Array1D< T > &B) |
template<class T > | |
Fortran_Array1D< T > & | operator+= (Fortran_Array1D< T > &A, const Fortran_Array1D< T > &B) |
template<class T > | |
Fortran_Array1D< T > & | operator-= (Fortran_Array1D< T > &A, const Fortran_Array1D< T > &B) |
template<class T > | |
Fortran_Array1D< T > & | operator*= (Fortran_Array1D< T > &A, const Fortran_Array1D< T > &B) |
template<class T > | |
Fortran_Array1D< T > & | operator/= (Fortran_Array1D< T > &A, const Fortran_Array1D< T > &B) |
template<class T > | |
std::ostream & | operator<< (std::ostream &s, const Fortran_Array2D< T > &A) |
template<class T > | |
std::istream & | operator>> (std::istream &s, Fortran_Array2D< T > &A) |
template<class T > | |
Fortran_Array2D< T > | operator+ (const Fortran_Array2D< T > &A, const Fortran_Array2D< T > &B) |
template<class T > | |
Fortran_Array2D< T > | operator- (const Fortran_Array2D< T > &A, const Fortran_Array2D< T > &B) |
template<class T > | |
Fortran_Array2D< T > | operator* (const Fortran_Array2D< T > &A, const Fortran_Array2D< T > &B) |
template<class T > | |
Fortran_Array2D< T > | operator/ (const Fortran_Array2D< T > &A, const Fortran_Array2D< T > &B) |
template<class T > | |
Fortran_Array2D< T > & | operator+= (Fortran_Array2D< T > &A, const Fortran_Array2D< T > &B) |
template<class T > | |
Fortran_Array2D< T > & | operator-= (Fortran_Array2D< T > &A, const Fortran_Array2D< T > &B) |
template<class T > | |
Fortran_Array2D< T > & | operator*= (Fortran_Array2D< T > &A, const Fortran_Array2D< T > &B) |
template<class T > | |
Fortran_Array2D< T > & | operator/= (Fortran_Array2D< T > &A, const Fortran_Array2D< T > &B) |
template<class T > | |
std::ostream & | operator<< (std::ostream &s, const Fortran_Array3D< T > &A) |
template<class T > | |
std::istream & | operator>> (std::istream &s, Fortran_Array3D< T > &A) |
template<class T > | |
Fortran_Array3D< T > | operator+ (const Fortran_Array3D< T > &A, const Fortran_Array3D< T > &B) |
template<class T > | |
Fortran_Array3D< T > | operator- (const Fortran_Array3D< T > &A, const Fortran_Array3D< T > &B) |
template<class T > | |
Fortran_Array3D< T > | operator* (const Fortran_Array3D< T > &A, const Fortran_Array3D< T > &B) |
template<class T > | |
Fortran_Array3D< T > | operator/ (const Fortran_Array3D< T > &A, const Fortran_Array3D< T > &B) |
template<class T > | |
Fortran_Array3D< T > & | operator+= (Fortran_Array3D< T > &A, const Fortran_Array3D< T > &B) |
template<class T > | |
Fortran_Array3D< T > & | operator-= (Fortran_Array3D< T > &A, const Fortran_Array3D< T > &B) |
template<class T > | |
Fortran_Array3D< T > & | operator*= (Fortran_Array3D< T > &A, const Fortran_Array3D< T > &B) |
template<class T > | |
Fortran_Array3D< T > & | operator/= (Fortran_Array3D< T > &A, const Fortran_Array3D< T > &B) |
template<class Real > | |
Real | hypot (const Real &a, const Real &b) |
template<class T > | |
std::ostream & | operator<< (std::ostream &s, const Vector< T > &A) |
template<class T > | |
std::istream & | operator>> (std::istream &s, Vector< T > &A) |
template<class T > | |
Vector< T > | operator+ (const Vector< T > &A, const Vector< T > &B) |
template<class T > | |
Vector< T > | operator- (const Vector< T > &A, const Vector< T > &B) |
template<class T > | |
Vector< T > | operator* (const Vector< T > &A, const Vector< T > &B) |
template<class T > | |
T | dot_prod (const Vector< T > &A, const Vector< T > &B) |
typedef TNT_SUBSCRIPT_TYPE TNT::Subscript |
Definition at line 43 of file tnt_subscript.h.
Real TNT::hypot | ( | const Real & | a, |
const Real & | b | ||
) |
Definition at line 18 of file tnt_math_utils.h.
Matrix Multiply: compute C = A*B, where C[i][j] is the dot-product of row i of A and column j of B.
A | an (m x n) array |
B | an (n x k) array |
Definition at line 259 of file tnt_array2d_utils.h.
Definition at line 472 of file tnt_cmat.h.
Definition at line 545 of file tnt_cmat.h.
|
inline |
Definition at line 508 of file tnt_cmat.h.
Definition at line 433 of file tnt_cmat.h.
Definition at line 107 of file tnt_array1d_utils.h.
Definition at line 119 of file tnt_array2d_utils.h.
Definition at line 109 of file tnt_array3d_utils.h.
Fortran_Array1D< T > TNT::operator* | ( | const Fortran_Array1D< T > & | A, |
const Fortran_Array1D< T > & | B | ||
) |
Definition at line 123 of file tnt_fortran_array1d_utils.h.
Fortran_Array2D< T > TNT::operator* | ( | const Fortran_Array2D< T > & | A, |
const Fortran_Array2D< T > & | B | ||
) |
Definition at line 120 of file tnt_fortran_array2d_utils.h.
Fortran_Array3D< T > TNT::operator* | ( | const Fortran_Array3D< T > & | A, |
const Fortran_Array3D< T > & | B | ||
) |
Definition at line 124 of file tnt_fortran_array3d_utils.h.
|
inline |
Definition at line 501 of file tnt_cmat.h.
|
inline |
Definition at line 572 of file tnt_cmat.h.
Definition at line 191 of file tnt_array1d_utils.h.
Definition at line 208 of file tnt_array2d_utils.h.
Definition at line 194 of file tnt_array3d_utils.h.
Fortran_Array1D< T > & TNT::operator*= | ( | Fortran_Array1D< T > & | A, |
const Fortran_Array1D< T > & | B | ||
) |
Definition at line 207 of file tnt_fortran_array1d_utils.h.
Fortran_Array2D< T > & TNT::operator*= | ( | Fortran_Array2D< T > & | A, |
const Fortran_Array2D< T > & | B | ||
) |
Definition at line 201 of file tnt_fortran_array2d_utils.h.
Fortran_Array3D< T > & TNT::operator*= | ( | Fortran_Array3D< T > & | A, |
const Fortran_Array3D< T > & | B | ||
) |
Definition at line 210 of file tnt_fortran_array3d_utils.h.
Definition at line 64 of file tnt_array1d_utils.h.
Definition at line 74 of file tnt_array2d_utils.h.
Definition at line 59 of file tnt_array3d_utils.h.
Fortran_Array1D< T > TNT::operator+ | ( | const Fortran_Array1D< T > & | A, |
const Fortran_Array1D< T > & | B | ||
) |
Definition at line 80 of file tnt_fortran_array1d_utils.h.
Fortran_Array2D< T > TNT::operator+ | ( | const Fortran_Array2D< T > & | A, |
const Fortran_Array2D< T > & | B | ||
) |
Definition at line 75 of file tnt_fortran_array2d_utils.h.
Fortran_Array3D< T > TNT::operator+ | ( | const Fortran_Array3D< T > & | A, |
const Fortran_Array3D< T > & | B | ||
) |
Definition at line 76 of file tnt_fortran_array3d_utils.h.
Definition at line 393 of file tnt_cmat.h.
Definition at line 156 of file tnt_array1d_utils.h.
Definition at line 170 of file tnt_array2d_utils.h.
Definition at line 158 of file tnt_array3d_utils.h.
Fortran_Array1D< T > & TNT::operator+= | ( | Fortran_Array1D< T > & | A, |
const Fortran_Array1D< T > & | B | ||
) |
Definition at line 172 of file tnt_fortran_array1d_utils.h.
Fortran_Array2D< T > & TNT::operator+= | ( | Fortran_Array2D< T > & | A, |
const Fortran_Array2D< T > & | B | ||
) |
Definition at line 167 of file tnt_fortran_array2d_utils.h.
Fortran_Array3D< T > & TNT::operator+= | ( | Fortran_Array3D< T > & | A, |
const Fortran_Array3D< T > & | B | ||
) |
Definition at line 172 of file tnt_fortran_array3d_utils.h.
Definition at line 86 of file tnt_array1d_utils.h.
Definition at line 96 of file tnt_array2d_utils.h.
Definition at line 83 of file tnt_array3d_utils.h.
Fortran_Array1D< T > TNT::operator- | ( | const Fortran_Array1D< T > & | A, |
const Fortran_Array1D< T > & | B | ||
) |
Definition at line 102 of file tnt_fortran_array1d_utils.h.
Fortran_Array2D< T > TNT::operator- | ( | const Fortran_Array2D< T > & | A, |
const Fortran_Array2D< T > & | B | ||
) |
Definition at line 97 of file tnt_fortran_array2d_utils.h.
Fortran_Array3D< T > TNT::operator- | ( | const Fortran_Array3D< T > & | A, |
const Fortran_Array3D< T > & | B | ||
) |
Definition at line 100 of file tnt_fortran_array3d_utils.h.
Definition at line 413 of file tnt_cmat.h.
Definition at line 174 of file tnt_array1d_utils.h.
Definition at line 189 of file tnt_array2d_utils.h.
Definition at line 176 of file tnt_array3d_utils.h.
Fortran_Array1D< T > & TNT::operator-= | ( | Fortran_Array1D< T > & | A, |
const Fortran_Array1D< T > & | B | ||
) |
Definition at line 190 of file tnt_fortran_array1d_utils.h.
Fortran_Array2D< T > & TNT::operator-= | ( | Fortran_Array2D< T > & | A, |
const Fortran_Array2D< T > & | B | ||
) |
Definition at line 184 of file tnt_fortran_array2d_utils.h.
Fortran_Array3D< T > & TNT::operator-= | ( | Fortran_Array3D< T > & | A, |
const Fortran_Array3D< T > & | B | ||
) |
Definition at line 191 of file tnt_fortran_array3d_utils.h.
Definition at line 128 of file tnt_array1d_utils.h.
Definition at line 144 of file tnt_array2d_utils.h.
Definition at line 133 of file tnt_array3d_utils.h.
Fortran_Array1D< T > TNT::operator/ | ( | const Fortran_Array1D< T > & | A, |
const Fortran_Array1D< T > & | B | ||
) |
Definition at line 144 of file tnt_fortran_array1d_utils.h.
Fortran_Array2D< T > TNT::operator/ | ( | const Fortran_Array2D< T > & | A, |
const Fortran_Array2D< T > & | B | ||
) |
Definition at line 143 of file tnt_fortran_array2d_utils.h.
Fortran_Array3D< T > TNT::operator/ | ( | const Fortran_Array3D< T > & | A, |
const Fortran_Array3D< T > & | B | ||
) |
Definition at line 148 of file tnt_fortran_array3d_utils.h.
Definition at line 209 of file tnt_array1d_utils.h.
Definition at line 229 of file tnt_array2d_utils.h.
Definition at line 213 of file tnt_array3d_utils.h.
Fortran_Array1D< T > & TNT::operator/= | ( | Fortran_Array1D< T > & | A, |
const Fortran_Array1D< T > & | B | ||
) |
Definition at line 225 of file tnt_fortran_array1d_utils.h.
Fortran_Array2D< T > & TNT::operator/= | ( | Fortran_Array2D< T > & | A, |
const Fortran_Array2D< T > & | B | ||
) |
Definition at line 218 of file tnt_fortran_array2d_utils.h.
Fortran_Array3D< T > & TNT::operator/= | ( | Fortran_Array3D< T > & | A, |
const Fortran_Array3D< T > & | B | ||
) |
Definition at line 229 of file tnt_fortran_array3d_utils.h.
std::ostream & TNT::operator<< | ( | std::ostream & | s, |
const Array1D< T > & | A | ||
) |
Definition at line 31 of file tnt_array1d_utils.h.
std::ostream & TNT::operator<< | ( | std::ostream & | s, |
const Array2D< T > & | A | ||
) |
Definition at line 32 of file tnt_array2d_utils.h.
std::ostream & TNT::operator<< | ( | std::ostream & | s, |
const Array3D< T > & | A | ||
) |
Definition at line 14 of file tnt_array3d_utils.h.
std::ostream & TNT::operator<< | ( | std::ostream & | s, |
const Fortran_Array1D< T > & | A | ||
) |
Write an array to a character outstream.
Output format is one that can be read back in via the in-stream operator: one integer denoting the array dimension (n), followed by n elements, one per line.
Definition at line 37 of file tnt_fortran_array1d_utils.h.
std::ostream & TNT::operator<< | ( | std::ostream & | s, |
const Fortran_Array2D< T > & | A | ||
) |
Definition at line 31 of file tnt_fortran_array2d_utils.h.
std::ostream & TNT::operator<< | ( | std::ostream & | s, |
const Fortran_Array3D< T > & | A | ||
) |
Definition at line 32 of file tnt_fortran_array3d_utils.h.
std::ostream & TNT::operator<< | ( | std::ostream & | s, |
const Matrix< T > & | A | ||
) |
Definition at line 345 of file tnt_cmat.h.
std::ostream & TNT::operator<< | ( | std::ostream & | s, |
const Vector< T > & | A | ||
) |
std::istream & TNT::operator>> | ( | std::istream & | s, |
Array1D< T > & | A | ||
) |
Definition at line 49 of file tnt_array1d_utils.h.
std::istream & TNT::operator>> | ( | std::istream & | s, |
Array2D< T > & | A | ||
) |
Definition at line 53 of file tnt_array2d_utils.h.
std::istream & TNT::operator>> | ( | std::istream & | s, |
Array3D< T > & | A | ||
) |
Definition at line 38 of file tnt_array3d_utils.h.
std::istream & TNT::operator>> | ( | std::istream & | s, |
Fortran_Array1D< T > & | A | ||
) |
Read an array from a character stream.
Input format is one integer, denoting the dimension (n), followed by n whitespace-separated elements. Newlines are ignored
Note: the array being read into references new memory storage. If the intent is to fill an existing conformant array, use cin >> B; A.inject(B) );
instead or read the elements in one-a-time by hand.
s | the charater to read from (typically std::in ) |
A | the array to read into. |
Definition at line 66 of file tnt_fortran_array1d_utils.h.
std::istream & TNT::operator>> | ( | std::istream & | s, |
Fortran_Array2D< T > & | A | ||
) |
Definition at line 52 of file tnt_fortran_array2d_utils.h.
std::istream & TNT::operator>> | ( | std::istream & | s, |
Fortran_Array3D< T > & | A | ||
) |
Definition at line 56 of file tnt_fortran_array3d_utils.h.
std::istream & TNT::operator>> | ( | std::istream & | s, |
Matrix< T > & | A | ||
) |
Definition at line 366 of file tnt_cmat.h.
std::istream & TNT::operator>> | ( | std::istream & | s, |
Vector< T > & | A | ||
) |
Definition at line 454 of file tnt_cmat.h.