NCBI C++ ToolKit
|
Search Toolkit Book for Matrix
#include "njn_matrix.hpp"
(Private to src/algo/blast/gumbel_params
.)
Public Types | |
typedef vector< Cell > | ResidueRow |
typedef vector< ResidueRow > | Grid |
Public Member Functions | |
Matrix () | |
Matrix (const Matrix &matrix_) | |
Matrix (size_t m_, size_t n_, const T *vector_) | |
Matrix (size_t m_, size_t n_, T a_=static_cast< T >(0)) | |
virtual | ~Matrix () |
Matrix & | operator= (const Matrix &matrix_) |
virtual void * | create (bool isCopy_=false) const |
virtual void | copy (size_t m_, size_t n_, const T *const *matrix_) |
virtual void | copy (size_t m_, size_t n_, const T *vector_) |
virtual void | copy (size_t m_, size_t n_, T a_=static_cast< T >(0)) |
virtual | operator bool () const |
virtual std::ostream & | out (std::ostream &ostr_) const |
virtual std::istream & | in (std::istream &istr_) |
virtual Matrix & | operator= (const T &a_) |
virtual T * | operator[] (size_t i_) |
virtual const T * | operator[] (size_t i_) const |
virtual T & | setValue () |
virtual size_t | getM () const |
virtual size_t | getN () const |
virtual const T *const * | getMatrix () const |
virtual const T | getValue () const |
Matrix (unsigned int nBlocks, unsigned int nResidues) | |
ResidueRow & | operator[] (unsigned int block) |
const ResidueRow & | operator[] (unsigned int block) const |
Matrix (double m0=1, double m1=0, double m2=0, double m3=0, double m4=0, double m5=1, double m6=0, double m7=0, double m8=0, double m9=0, double m10=1, double m11=0, double m12=0, double m13=0, double m14=0, double m15=1) | |
Matrix (const Matrix &o) | |
void | SetToIdentity (void) |
Matrix & | operator= (const Matrix &o) |
double & | operator[] (unsigned int i) |
double | operator[] (unsigned int i) const |
Static Public Member Functions | |
static Matrix< T > * | matrix (size_t k_, size_t m_, size_t n_, T a_=static_cast< T >(0)) |
static bool | approx (const Matrix< T > &x_, const Matrix< T > &y_, T eps_) |
static bool | relApprox (const Matrix< T > &x_, const Matrix< T > &y_, T eps_) |
static bool | absRelApprox (const Matrix< T > &x_, const Matrix< T > &y_, T tol_, T rtol_) |
static bool | isSymmetric (const Matrix< T > &x_) |
Public Attributes | |
Grid | grid |
double | m [16] |
Private Member Functions | |
virtual void | init (size_t m_, size_t n_) |
virtual void | free () |
Private Attributes | |
size_t | d_m |
size_t | d_n |
T ** | d_matrix_p |
T | d_value |
Definition at line 56 of file njn_matrix.hpp.
typedef vector< ResidueRow > Matrix< T >::Grid |
Definition at line 67 of file block_align.cpp.
typedef vector< Cell > Matrix< T >::ResidueRow |
Definition at line 66 of file block_align.cpp.
Definition at line 223 of file njn_matrix.hpp.
Definition at line 228 of file njn_matrix.hpp.
Definition at line 235 of file njn_matrix.hpp.
References copy().
|
inline |
Definition at line 245 of file njn_matrix.hpp.
References copy().
Definition at line 255 of file njn_matrix.hpp.
References free().
Definition at line 69 of file block_align.cpp.
References i, and pythonpp::resize().
|
inline |
Definition at line 169 of file vector_math.hpp.
References Matrix< T >::m.
Definition at line 178 of file vector_math.hpp.
References i, and Matrix< T >::m.
|
inlinestatic |
Definition at line 194 of file njn_matrix.hpp.
References absRelApprox(), assert, and i.
|
inlinestatic |
Definition at line 164 of file njn_matrix.hpp.
|
inlinevirtual |
Definition at line 522 of file njn_matrix.hpp.
|
inlinevirtual |
Definition at line 542 of file njn_matrix.hpp.
|
inlinevirtual |
Definition at line 563 of file njn_matrix.hpp.
Definition at line 269 of file njn_matrix.hpp.
Definition at line 598 of file njn_matrix.hpp.
References i.
Definition at line 94 of file njn_matrix.hpp.
References Matrix< T >::d_m.
Definition at line 96 of file njn_matrix.hpp.
References Matrix< T >::d_matrix_p.
Definition at line 95 of file njn_matrix.hpp.
References Matrix< T >::d_n.
Definition at line 97 of file njn_matrix.hpp.
References Matrix< T >::d_value.
Definition at line 355 of file njn_matrix.hpp.
References abort(), assert, clearFormat(), free(), GENERAL, getFormat(), getLine(), HUMAN, i, init(), MACHINE, n, SYMMETRIC, T, USING_SCOPE, and rapidjson::value.
Definition at line 584 of file njn_matrix.hpp.
Definition at line 209 of file njn_matrix.hpp.
References i.
|
inlinestatic |
Definition at line 150 of file njn_matrix.hpp.
Definition at line 277 of file njn_matrix.hpp.
Definition at line 258 of file njn_matrix.hpp.
References copy().
Definition at line 186 of file vector_math.hpp.
References i, and Matrix< T >::m.
Definition at line 503 of file njn_matrix.hpp.
References copy().
Definition at line 510 of file njn_matrix.hpp.
Definition at line 516 of file njn_matrix.hpp.
|
inline |
Definition at line 71 of file block_align.cpp.
|
inline |
Definition at line 72 of file block_align.cpp.
Definition at line 190 of file vector_math.hpp.
References ERR_POST, Error(), i, and Matrix< T >::m.
Definition at line 199 of file vector_math.hpp.
References ERR_POST, Error(), i, and Matrix< T >::m.
Definition at line 280 of file njn_matrix.hpp.
References abort(), assert, clearFormat(), GENERAL, getFormat(), HUMAN, i, MACHINE, SYMMETRIC, and USING_SCOPE.
|
inlinestatic |
Definition at line 179 of file njn_matrix.hpp.
References assert, i, and relApprox().
Definition at line 181 of file vector_math.hpp.
References Matrix< T >::m.
Referenced by RigidBodyFit().
Definition at line 92 of file njn_matrix.hpp.
References Matrix< T >::d_value.
Definition at line 101 of file njn_matrix.hpp.
Referenced by Matrix< T >::getM().
Definition at line 103 of file njn_matrix.hpp.
Referenced by Matrix< T >::getMatrix().
Definition at line 102 of file njn_matrix.hpp.
Referenced by Matrix< T >::getN().
Definition at line 104 of file njn_matrix.hpp.
Referenced by Matrix< T >::getValue(), and Matrix< T >::setValue().
Definition at line 68 of file block_align.cpp.
Definition at line 168 of file vector_math.hpp.
Referenced by ApplyTransformation(), ComposeInto(), GL2Matrix(), InvertInto(), Matrix< T >::Matrix(), Matrix2GL(), Matrix< T >::operator=(), Matrix< T >::operator[](), SetRotationMatrix(), SetScaleMatrix(), Matrix< T >::SetToIdentity(), and StructureObject::SetTransformToMaster().