Essentia
2.1-beta6-dev
|
Classes | |
class | Array1D |
class | Array2D |
class | Array3D |
class | Matrix |
class | Fortran_Array1D |
class | Fortran_Array2D |
class | Fortran_Array3D |
class | i_refvec |
class | Sparse_Matrix_CompRow |
class | Stopwatch |
class | Vector |
Typedefs | |
typedef int | 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) |
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) |
template<class T > | |
std::istream & | operator>> (std::istream &s, Fortran_Array1D< T > &A) |
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) |
static double | seconds (void) |
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 int Subscript |
References Vector< T >::dim(), and essentia::sum().
Real TNT::hypot | ( | const Real & | a, |
const Real & | b | ||
) |
Referenced by QR< Real >::QR(), SVD< Real >::SVD(), and Eigenvalue< Real >::tql2().
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 |
References Array2D< T >::dim1(), Array2D< T >::dim2(), and essentia::sum().
Referenced by operator*().
References Matrix< T >::num_cols(), Matrix< T >::num_rows(), and essentia::sum().
References Vector< T >::dim(), Matrix< T >::num_cols(), Matrix< T >::num_rows(), and essentia::sum().
References Matrix< T >::newsize(), Matrix< T >::num_cols(), Matrix< T >::num_rows(), and essentia::sum().
References Matrix< T >::num_cols(), and Matrix< T >::num_rows().
References Array1D< T >::dim1().
References Array2D< T >::dim1(), and Array2D< T >::dim2().
References Array3D< T >::dim1(), Array3D< T >::dim2(), and Array3D< T >::dim3().
Fortran_Array1D<T> TNT::operator* | ( | const Fortran_Array1D< T > & | A, |
const Fortran_Array1D< T > & | B | ||
) |
References Fortran_Array1D< T >::dim1().
Fortran_Array2D<T> TNT::operator* | ( | const Fortran_Array2D< T > & | A, |
const Fortran_Array2D< T > & | B | ||
) |
References Fortran_Array2D< T >::dim1(), and Fortran_Array2D< T >::dim2().
Fortran_Array3D<T> TNT::operator* | ( | const Fortran_Array3D< T > & | A, |
const Fortran_Array3D< T > & | B | ||
) |
References matmult().
References matmult().
References Vector< T >::dim().
References Array1D< T >::dim1().
References Array2D< T >::dim1(), and Array2D< T >::dim2().
References Array3D< T >::dim1(), Array3D< T >::dim2(), and Array3D< T >::dim3().
Fortran_Array1D<T>& TNT::operator*= | ( | Fortran_Array1D< T > & | A, |
const Fortran_Array1D< T > & | B | ||
) |
References Fortran_Array1D< T >::dim1().
Fortran_Array2D<T>& TNT::operator*= | ( | Fortran_Array2D< T > & | A, |
const Fortran_Array2D< T > & | B | ||
) |
References Fortran_Array2D< T >::dim1(), and Fortran_Array2D< T >::dim2().
Fortran_Array3D<T>& TNT::operator*= | ( | Fortran_Array3D< T > & | A, |
const Fortran_Array3D< T > & | B | ||
) |
References Array1D< T >::dim1().
References Array2D< T >::dim1(), and Array2D< T >::dim2().
References Array3D< T >::dim1(), Array3D< T >::dim2(), and Array3D< T >::dim3().
Fortran_Array1D<T> TNT::operator+ | ( | const Fortran_Array1D< T > & | A, |
const Fortran_Array1D< T > & | B | ||
) |
References Fortran_Array1D< T >::dim1().
Fortran_Array2D<T> TNT::operator+ | ( | const Fortran_Array2D< T > & | A, |
const Fortran_Array2D< T > & | B | ||
) |
References Fortran_Array2D< T >::dim1(), and Fortran_Array2D< T >::dim2().
Fortran_Array3D<T> TNT::operator+ | ( | const Fortran_Array3D< T > & | A, |
const Fortran_Array3D< T > & | B | ||
) |
References Matrix< T >::num_cols(), and Matrix< T >::num_rows().
References Vector< T >::dim().
References Array1D< T >::dim1().
References Array2D< T >::dim1(), and Array2D< T >::dim2().
References Array3D< T >::dim1(), Array3D< T >::dim2(), and Array3D< T >::dim3().
Fortran_Array1D<T>& TNT::operator+= | ( | Fortran_Array1D< T > & | A, |
const Fortran_Array1D< T > & | B | ||
) |
References Fortran_Array1D< T >::dim1().
Fortran_Array2D<T>& TNT::operator+= | ( | Fortran_Array2D< T > & | A, |
const Fortran_Array2D< T > & | B | ||
) |
References Fortran_Array2D< T >::dim1(), and Fortran_Array2D< T >::dim2().
Fortran_Array3D<T>& TNT::operator+= | ( | Fortran_Array3D< T > & | A, |
const Fortran_Array3D< T > & | B | ||
) |
References Array1D< T >::dim1().
References Array2D< T >::dim1(), and Array2D< T >::dim2().
References Array3D< T >::dim1(), Array3D< T >::dim2(), and Array3D< T >::dim3().
Fortran_Array1D<T> TNT::operator- | ( | const Fortran_Array1D< T > & | A, |
const Fortran_Array1D< T > & | B | ||
) |
References Fortran_Array1D< T >::dim1().
Fortran_Array2D<T> TNT::operator- | ( | const Fortran_Array2D< T > & | A, |
const Fortran_Array2D< T > & | B | ||
) |
References Fortran_Array2D< T >::dim1(), and Fortran_Array2D< T >::dim2().
Fortran_Array3D<T> TNT::operator- | ( | const Fortran_Array3D< T > & | A, |
const Fortran_Array3D< T > & | B | ||
) |
References Matrix< T >::num_cols(), and Matrix< T >::num_rows().
References Vector< T >::dim().
References Array1D< T >::dim1().
References Array2D< T >::dim1(), and Array2D< T >::dim2().
References Array3D< T >::dim1(), Array3D< T >::dim2(), and Array3D< T >::dim3().
Fortran_Array1D<T>& TNT::operator-= | ( | Fortran_Array1D< T > & | A, |
const Fortran_Array1D< T > & | B | ||
) |
References Fortran_Array1D< T >::dim1().
Fortran_Array2D<T>& TNT::operator-= | ( | Fortran_Array2D< T > & | A, |
const Fortran_Array2D< T > & | B | ||
) |
References Fortran_Array2D< T >::dim1(), and Fortran_Array2D< T >::dim2().
Fortran_Array3D<T>& TNT::operator-= | ( | Fortran_Array3D< T > & | A, |
const Fortran_Array3D< T > & | B | ||
) |
References Array1D< T >::dim1().
References Array2D< T >::dim1(), and Array2D< T >::dim2().
References Array3D< T >::dim1(), Array3D< T >::dim2(), and Array3D< T >::dim3().
Fortran_Array1D<T> TNT::operator/ | ( | const Fortran_Array1D< T > & | A, |
const Fortran_Array1D< T > & | B | ||
) |
References Fortran_Array1D< T >::dim1().
Fortran_Array2D<T> TNT::operator/ | ( | const Fortran_Array2D< T > & | A, |
const Fortran_Array2D< T > & | B | ||
) |
References Fortran_Array2D< T >::dim1(), and Fortran_Array2D< T >::dim2().
Fortran_Array3D<T> TNT::operator/ | ( | const Fortran_Array3D< T > & | A, |
const Fortran_Array3D< T > & | B | ||
) |
References Array1D< T >::dim1().
References Array2D< T >::dim1(), and Array2D< T >::dim2().
References Array3D< T >::dim1(), Array3D< T >::dim2(), and Array3D< T >::dim3().
Fortran_Array1D<T>& TNT::operator/= | ( | Fortran_Array1D< T > & | A, |
const Fortran_Array1D< T > & | B | ||
) |
References Fortran_Array1D< T >::dim1().
Fortran_Array2D<T>& TNT::operator/= | ( | Fortran_Array2D< T > & | A, |
const Fortran_Array2D< T > & | B | ||
) |
References Fortran_Array2D< T >::dim1(), and Fortran_Array2D< T >::dim2().
Fortran_Array3D<T>& TNT::operator/= | ( | Fortran_Array3D< T > & | A, |
const Fortran_Array3D< T > & | B | ||
) |
std::ostream& TNT::operator<< | ( | std::ostream & | s, |
const Array1D< T > & | A | ||
) |
References Array1D< T >::dim1().
std::ostream& TNT::operator<< | ( | std::ostream & | s, |
const Array2D< T > & | A | ||
) |
References Array2D< T >::dim1(), and Array2D< T >::dim2().
std::ostream& TNT::operator<< | ( | std::ostream & | s, |
const Array3D< T > & | A | ||
) |
References Array3D< T >::dim1(), Array3D< T >::dim2(), and Array3D< T >::dim3().
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.
References Fortran_Array1D< T >::dim1().
std::ostream& TNT::operator<< | ( | std::ostream & | s, |
const Fortran_Array2D< T > & | A | ||
) |
References Fortran_Array2D< T >::dim1(), and Fortran_Array2D< T >::dim2().
std::ostream& TNT::operator<< | ( | std::ostream & | s, |
const Fortran_Array3D< T > & | A | ||
) |
std::ostream& TNT::operator<< | ( | std::ostream & | s, |
const Matrix< T > & | A | ||
) |
References Matrix< T >::num_cols(), and Matrix< T >::num_rows().
std::ostream& TNT::operator<< | ( | std::ostream & | s, |
const Vector< T > & | A | ||
) |
References Vector< T >::dim().
std::istream& TNT::operator>> | ( | std::istream & | s, |
Array1D< T > & | A | ||
) |
std::istream& TNT::operator>> | ( | std::istream & | s, |
Array2D< T > & | A | ||
) |
std::istream& TNT::operator>> | ( | std::istream & | s, |
Array3D< T > & | A | ||
) |
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 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 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. |
std::istream& TNT::operator>> | ( | std::istream & | s, |
Fortran_Array2D< T > & | A | ||
) |
std::istream& TNT::operator>> | ( | std::istream & | s, |
Fortran_Array3D< T > & | A | ||
) |
std::istream& TNT::operator>> | ( | std::istream & | s, |
Matrix< T > & | A | ||
) |
References Matrix< T >::newsize(), Matrix< T >::num_cols(), and Matrix< T >::num_rows().
std::istream& TNT::operator>> | ( | std::istream & | s, |
Vector< T > & | A | ||
) |
References Vector< T >::newsize(), and Vector< T >::size().
|
inlinestatic |
Referenced by Stopwatch::resume(), Stopwatch::start(), and Stopwatch::stop().
References Matrix< T >::num_cols(), and Matrix< T >::num_rows().