Compounds | |
class | TNT::Array1D |
class | TNT::Array2D |
class | TNT::Array3D |
class | TNT::Fortran_Array1D |
class | TNT::Fortran_Array2D |
class | TNT::Fortran_Array3D |
class | TNT::Matrix |
class | TNT::Sparse_Matrix_CompRow |
class | TNT::Stopwatch |
class | TNT::Vector |
Typedefs | |
typedef TNT_SUBSCRIPT_TYPE | Subscript |
Functions | |
template<class T> std::ostream& | operator<< (std::ostream &s, const Array1D< T > &A) |
std::istream& | operator>> (std::istream &s, Array1D< T > &A) |
Array1D<T> | operator+ (const Array1D< T > &A, const Array1D< T > &B) |
Array1D<T> | operator- (const Array1D< T > &A, const Array1D< T > &B) |
Array1D<T> | operator * (const Array1D< T > &A, const Array1D< T > &B) |
Array1D<T> | operator/ (const Array1D< T > &A, const Array1D< T > &B) |
Array1D<T>& | operator+= (Array1D< T > &A, const Array1D< T > &B) |
Array1D<T>& | operator-= (Array1D< T > &A, const Array1D< T > &B) |
Array1D<T>& | operator *= (Array1D< T > &A, const Array1D< T > &B) |
Array1D<T>& | operator/= (Array1D< T > &A, const Array1D< T > &B) |
template<class T> std::ostream& | operator<< (std::ostream &s, const Array2D< T > &A) |
std::istream& | operator>> (std::istream &s, Array2D< T > &A) |
Array2D<T> | operator+ (const Array2D< T > &A, const Array2D< T > &B) |
Array2D<T> | operator- (const Array2D< T > &A, const Array2D< T > &B) |
Array2D<T> | operator * (const Array2D< T > &A, const Array2D< T > &B) |
Array2D<T> | operator/ (const Array2D< T > &A, const Array2D< T > &B) |
Array2D<T>& | operator+= (Array2D< T > &A, const Array2D< T > &B) |
Array2D<T>& | operator-= (Array2D< T > &A, const Array2D< T > &B) |
Array2D<T>& | operator *= (Array2D< T > &A, const Array2D< T > &B) |
Array2D<T>& | operator/= (Array2D< T > &A, const Array2D< T > &B) |
Array2D<T> | matmult (const Array2D< T > &A, const Array2D< T > &B) |
template<class T> std::ostream& | operator<< (std::ostream &s, const Array3D< T > &A) |
std::istream& | operator>> (std::istream &s, Array3D< T > &A) |
Array3D<T> | operator+ (const Array3D< T > &A, const Array3D< T > &B) |
Array3D<T> | operator- (const Array3D< T > &A, const Array3D< T > &B) |
Array3D<T> | operator * (const Array3D< T > &A, const Array3D< T > &B) |
Array3D<T> | operator/ (const Array3D< T > &A, const Array3D< T > &B) |
Array3D<T>& | operator+= (Array3D< T > &A, const Array3D< T > &B) |
Array3D<T>& | operator-= (Array3D< T > &A, const Array3D< T > &B) |
Array3D<T>& | operator *= (Array3D< T > &A, const Array3D< T > &B) |
Array3D<T>& | operator/= (Array3D< T > &A, const Array3D< T > &B) |
template<class T> std::ostream& | operator<< (std::ostream &s, const Matrix< T > &A) |
std::istream& | operator>> (std::istream &s, Matrix< T > &A) |
Matrix<T> | operator+ (const Matrix< T > &A, const Matrix< T > &B) |
Matrix<T> | operator- (const Matrix< T > &A, const Matrix< T > &B) |
Matrix<T> | mult_element (const Matrix< T > &A, const Matrix< T > &B) |
Matrix<T> | transpose (const Matrix< T > &A) |
Matrix<T> | matmult (const Matrix< T > &A, const Matrix< T > &B) |
Matrix<T> | operator * (const Matrix< T > &A, const Matrix< T > &B) |
int | matmult (Matrix< T > &C, const Matrix< T > &A, const Matrix< T > &B) |
Vector<T> | matmult (const Matrix< T > &A, const Vector< T > &x) |
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) |
std::istream& | operator>> (std::istream &s, Fortran_Array1D< T > &A) |
Fortran_Array1D<T> | operator+ (const Fortran_Array1D< T > &A, const Fortran_Array1D< T > &B) |
Fortran_Array1D<T> | operator- (const Fortran_Array1D< T > &A, const Fortran_Array1D< T > &B) |
Fortran_Array1D<T> | operator * (const Fortran_Array1D< T > &A, const Fortran_Array1D< T > &B) |
Fortran_Array1D<T> | operator/ (const Fortran_Array1D< T > &A, const Fortran_Array1D< T > &B) |
Fortran_Array1D<T>& | operator+= (Fortran_Array1D< T > &A, const Fortran_Array1D< T > &B) |
Fortran_Array1D<T>& | operator-= (Fortran_Array1D< T > &A, const Fortran_Array1D< T > &B) |
Fortran_Array1D<T>& | operator *= (Fortran_Array1D< T > &A, const Fortran_Array1D< T > &B) |
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) |
std::istream& | operator>> (std::istream &s, Fortran_Array2D< T > &A) |
template<class T> std::ostream& | operator<< (std::ostream &s, const Fortran_Array3D< T > &A) |
std::istream& | operator>> (std::istream &s, Fortran_Array3D< T > &A) |
Real | hypot (const Real &a, const Real &b) |
Scalar | min (const Scalar &a, const Scalar &b) |
Scalar | max (const Scalar &a, const Scalar &b) |
Real | abs (const Real &a) |
template<class T> std::ostream& | operator<< (std::ostream &s, const Vector< T > &A) |
std::istream& | operator>> (std::istream &s, Vector< T > &A) |
Vector<T> | operator+ (const Vector< T > &A, const Vector< T > &B) |
Vector<T> | operator- (const Vector< T > &A, const Vector< T > &B) |
Vector<T> | operator * (const Vector< T > &A, const Vector< T > &B) |
T | dot_prod (const Vector< T > &A, const Vector< 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.
|
|
|
|
|
|
|
|
|
|
Array multiplication (element-wise) : compute C = A*B, where each C(i) is A(i) * B(i).
|
|
|
|
|
|
Array multiplication (element-wise): compute C = A*B, where C[i][j][k] is the product of A[i][j][k] and B[i][j][k].
|
|
Array (element-wise) multiplication: compute C = A*B, where C[i][j] is A[i][j] * B[i][j]. (Note: this is not matrix multiplcation, see Matrix<T> for linear algebra operations.)
|
|
Array multiplication (element-wise) : compute C = A*B, where each C[i] is A[i] * B[i].
|
|
Array element-wise multiplication (in place): compute A = A*B, where each A(i) is replaced with A(i) * B(i).
|
|
Array multiplication (in place): compute A = A*B, where each A[i][j][k] is replaced by A[i][j][k] * B[i][j][k].
|
|
Array multiplication (in place): compute A = A*B, where each A[i][j] is replaced with A[i][j] * B[i][j].
|
|
Array element-wise multiplication (in place): compute A = A*B, where each A[i] is replaced with A[i] * B[i].
|
|
|
|
Array addition: compute C = A+B, where C(i) is the sum of A(i) and B(i).
|
|
|
|
Array addition: compute C = A+B, where C[i][j][k] is the sum of A[i][j][k] and B[i][j][k].
|
|
Array addition: compute C = A+B, where C[i][j] is the sum of A[i][j] and B[i][j].
|
|
Array addition: compute C = A+B, where C[i] is the sum of A[i] and B[i].
|
|
Array addition (in place): compute A = A+B, where each A(i) is replaced with A(i) + B(i).
|
|
Array addition (in place): compute A = A+B, where each A[i][j][k] is replaced by A[i][j][k] + B[i][j][k].
|
|
Array addition (in place): compute A = A+B, where each A[i][j] is replaced with A[i][j] + B[i][j].
|
|
Array addition (in place): compute A = A+B, where each A[i] is replaced with A[i] + B[i].
|
|
|
|
Array subtraction: compute C = A-B, where each C(i) is A(i) - B(i).
|
|
|
|
Array subtraction: compute C = A-B, where C[i][j][k] is the sum of A[i][j][k] and B[i][j][k].
|
|
Array subtraction: compute C = A-B, where C[i][j] is A[i][j] - B[i][j].
|
|
Array subtraction: compute C = A-B, where each C[i] is A[i] - B[i].
|
|
Array subtraction (in place): compute A = A-B, where each A(i) is replaced with A(i) - B(i).
|
|
Array subtraction (in place): compute A = A-B, where each A[i][j][k] is replaced by A[i][j][k] - B[i][j][k].
|
|
Array subtraction (in place): compute A = A-B, where each A[i][j] is replaced with A[i][j] - B[i][j].
|
|
Array subtraction (in place): compute A = A-B, where each A[i] is replaced with A[i] - B[i].
|
|
Array division (element-wise) : compute C = A*B, where each C(i) is A(i) / B(i).
|
|
Array division (element-wise): compute C = A/B, where C[i][j][k] is the A[i][j][k] / B[i][j][k].
|
|
Array (element-wise) division: compute C = A/B, where C[i][j] is A[i][j] / B[i][j].
|
|
Array division (element-wise) : compute C = A*B, where each C[i] is A[i] / B[i].
|
|
Array element-wise division (in place): compute A = A/B, where each A(i) is replaced with A(i) / B(i).
|
|
Array division (in place): compute A = A/B, where each A[i][j][k] is replaced by A[i][j][k] / B[i][j][k].
|
|
Array divsion (in place): compute A = A/B, where each A[i][j] is replaced with A[i][j] / B[i][j].
|
|
Array element-wise division (in place): compute A = A/B, where each A[i] is replaced with A[i] / B[i].
|
|
|
|
Write an array to a character outstream. Output format is one that can be read back in via the in-stream operator: three integers denoting the array dimensions (m x n x k), followed by m (n x k) arrays in "row-major" order. |
|
Write an array to a character outstream. Output format is one that can be read back in via the in-stream operator: two integers denoting the array dimensions (m x n), followed by m lines of n elements. |
|
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. |
|
|
|
Write an array to a character outstream. Output format is one that can be read back in via the in-stream operator: three integers denoting the array dimensions (m x n x k), followed by m (n x k) arrays. |
|
Write an array to a character outstream. Output format is one that can be read back in via the in-stream operator: two integers denoting the array dimensions (m x n), followed by m lines of n elements. |
|
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. |
|
|
|
Read an array from a character stream. Input format is three integers, denoting the dimensions (m x n x k), followed by m*n*k whitespace-separated elments in "row-major" order (i.e. right-most dimension varying fastest.) Newlines are ignored.
Note: the array being read into references new memory storage. If the intent is to fill an existing conformant array, use
|
|
Read an array from a character stream. Input format is two integers, denoting the dimensions (m x n), followed by m*n whitespace-separated elments in "row-major" order (i.e. right-most dimension varying fastest.) Newlines are ignored.
Note: the array being read into references new memory storage. If the intent is to fill an existing conformant array, use
|
|
Read an array from a character stream. Input format is one integer, denoting the dimension (n), followed by n whitespace-separated elments. Newlines are ignored
Note: the array being read into references new memory storage. If the intent is to fill an existing conformant array, use
|
|
|
|
Read an array from a character stream. Input format is three integers, denoting the dimensions (m x n x k), followed by m*n*k whitespace-separated elments in "row-major" order (i.e. right-most dimension varying fastest.) Newlines are ignored.
Note: the array being read into references new memory storage. If the intent is to fill an existing conformant array, use
|
|
Read an array from a character stream. Input format is two integers, denoting the dimensions (m x n), followed by m*n whitespace-separated elments in "row-major" order (i.e. right-most dimension varying fastest.) Newlines are ignored.
Note: the array being read into references new memory storage. If the intent is to fill an existing conformant array, use
|
|
Read an array from a character stream. Input format is one integer, denoting the dimension (n), followed by n whitespace-separated elments. Newlines are ignored
Note: the array being read into references new memory storage. If the intent is to fill an existing conformant array, use
|
|
|