NCBI C++ ToolKit
|
Search Toolkit Book for AMatrix_base
#include <algo/structure/cd_utils/cuMatrix.hpp>
Public Member Functions | |
AMatrix_base () | |
AMatrix_base (const int NumRows, const int NumCols) | |
AMatrix_base (const AMatrix_base &Matrix) | |
AMatrix_base & | operator= (const AMatrix_base &Matrix) |
~AMatrix_base () | |
void | GetSize (int &NumRows, int &NumCols) |
int | GetNumRows () const |
int | GetNumCols () const |
double | FastGet (const int RowIndex, const int ColIndex) const |
bool | IsColSet (int ColIndex) const |
bool | Shrink (const int NumRows, const int NumCols) |
void | ReSize (const int NumRows, const int NumCols) |
double & | operator[] (int ColIndex) |
double | Get (int RowIndex, int ColIndex) |
void | Set (int RowIndex, int ColIndex, double Val) |
void | LinearTransform (double b, double m, bool ignoreDiagonal=false) |
void | GetExtremalEntries (double &max, double &min, bool ignoreDiagonal=false) |
void | DeAllocate () |
Protected Member Functions | |
int | Max (int Val1, int Val2) |
Protected Attributes | |
double ** | m_Array |
bool * | m_ColumnFlags |
int | m_NumRows |
int | m_NumCols |
int | m_RowIndex |
Private Member Functions | |
void | Allocate (const int NumRows, const int NumCols) |
void | Copy (const AMatrix_base &Matrix) |
void | SlowCopy (const AMatrix_base &Matrix) |
void | MakeArrayBigger (const int RowIndex, const int ColIndex) |
bool | MakeSureArrayIsBigEnough (const int RowIndex, const int ColIndex) |
Definition at line 44 of file cuMatrix.hpp.
|
inline |
Definition at line 53 of file cuMatrix.hpp.
Definition at line 60 of file cuMatrix.hpp.
References assert.
|
inline |
Definition at line 66 of file cuMatrix.hpp.
|
inline |
Definition at line 75 of file cuMatrix.hpp.
Definition at line 107 of file cuMatrix.cpp.
References i, m_Array, m_ColumnFlags, m_NumCols, and m_NumRows.
|
private |
Definition at line 156 of file cuMatrix.cpp.
References Allocate(), DeAllocate(), m_Array, m_ColumnFlags, m_NumCols, and m_NumRows.
void AMatrix_base::DeAllocate | ( | ) |
Definition at line 130 of file cuMatrix.cpp.
References i, m_Array, m_ColumnFlags, m_NumCols, m_NumRows, and NULL.
Definition at line 88 of file cuMatrix.hpp.
Referenced by NJ_TreeAlgorithm::ComputeTree(), and SLC_TreeAlgorithm::ComputeTree().
Definition at line 116 of file cuMatrix.hpp.
References assert.
Definition at line 206 of file cuMatrix.cpp.
References GetNumRows(), i, kMax_Double, kMin_Double, m_Array, max(), min(), and n.
Referenced by DM_BlastScore::CalcPairwiseScoresOnTheFly(), DistanceMatrix::GetMaxEntry(), and DistanceMatrix::GetMinEntry().
|
inline |
Definition at line 85 of file cuMatrix.hpp.
Referenced by NJ_TreeAlgorithm::initializeNodes(), and SLC_TreeAlgorithm::initializeNodes().
|
inline |
Definition at line 84 of file cuMatrix.hpp.
Referenced by DMAlignedOptimalScore::convertScoreToDistance(), DistanceMatrix::EnforceSymmetry(), GetExtremalEntries(), NJ_TreeAlgorithm::initializeNodes(), SLC_TreeAlgorithm::initializeNodes(), LinearTransform(), DistanceMatrix::ReplaceZeroWithTinyValue(), and DistanceMatrix::writeMat().
Definition at line 79 of file cuMatrix.hpp.
Definition at line 92 of file cuMatrix.hpp.
Definition at line 192 of file cuMatrix.cpp.
References b, GetNumRows(), i, m_Array, and n.
Referenced by DM_BlastScore::CalcPairwiseScoresOnTheFly().
Definition at line 42 of file cuMatrix.cpp.
References m_Array, m_ColumnFlags, m_NumCols, m_NumRows, NULL, and SlowCopy().
|
inlineprivate |
Definition at line 142 of file cuMatrix.hpp.
Definition at line 149 of file cuMatrix.hpp.
Referenced by DM_Identities::GetPercentIdentities(), AlignedDM::GetResidueListsWithShifts(), and DM_AlignedScore::GetScore().
|
inline |
Definition at line 70 of file cuMatrix.hpp.
|
inline |
Definition at line 109 of file cuMatrix.hpp.
References assert.
Definition at line 103 of file cuMatrix.hpp.
Referenced by DistanceMatrix::readMat(), and DistanceMatrix::SetData().
Definition at line 122 of file cuMatrix.hpp.
References assert.
Definition at line 74 of file cuMatrix.cpp.
References Allocate(), DeAllocate(), i, m_Array, m_ColumnFlags, m_NumCols, m_NumRows, and result.
|
private |
Definition at line 167 of file cuMatrix.cpp.
References assert, i, m_Array, m_ColumnFlags, m_NumCols, and m_NumRows.
Referenced by MakeArrayBigger().
|
protected |
Definition at line 47 of file cuMatrix.hpp.
Referenced by Allocate(), DM_AlignedScore::CalcPairwiseScores(), DM_BlastScore::CalcPairwiseScoresOnTheFly(), DMAlignedOptimalScore::ComputeMatrix(), DM_AlignedScore::ConvertScoresToDistances(), DMAlignedOptimalScore::convertScoreToDistance(), Copy(), DeAllocate(), DistanceMatrix::EnforceSymmetry(), GetExtremalEntries(), DistanceMatrix::GetMatrix(), DM_Identities::GetPercentIdentities(), FlexiDm::GetPercentIdentities(), LinearTransform(), MakeArrayBigger(), DistanceMatrix::ReplaceZeroWithTinyValue(), Shrink(), and SlowCopy().
|
protected |
Definition at line 48 of file cuMatrix.hpp.
Referenced by Allocate(), Copy(), DeAllocate(), MakeArrayBigger(), Shrink(), and SlowCopy().
|
protected |
Definition at line 49 of file cuMatrix.hpp.
Referenced by Allocate(), Copy(), DeAllocate(), MakeArrayBigger(), Shrink(), and SlowCopy().
|
protected |
Definition at line 49 of file cuMatrix.hpp.
Referenced by Allocate(), Copy(), DeAllocate(), AlignedDM::GetResidueListsWithShifts(), MakeArrayBigger(), Shrink(), SlowCopy(), and AlignedDM::~AlignedDM().
|
protected |
Definition at line 50 of file cuMatrix.hpp.
Referenced by AMatrix::operator[]().