bpp-core3
3.0.0
|
The matrix template interface. More...
#include <Bpp/Numeric/Matrix/Matrix.h>
Public Member Functions | |
Matrix () | |
virtual | ~Matrix () |
virtual const Scalar & | operator() (size_t i, size_t j) const =0 |
virtual Scalar & | operator() (size_t i, size_t j)=0 |
virtual bool | equals (const Matrix &m, double threshold=NumConstants::TINY()) |
virtual size_t | getNumberOfRows () const =0 |
virtual size_t | getNumberOfColumns () const =0 |
virtual std::vector< Scalar > | row (size_t i) const =0 |
virtual std::vector< Scalar > | col (size_t j) const =0 |
virtual void | resize (size_t nRows, size_t nCols)=0 |
Resize the matrix. More... | |
virtual Clonable * | clone () const =0 |
Create a copy of this object and send a pointer to it. More... | |
The matrix template interface.
|
inline |
|
inlinevirtual |
Definition at line 27 of file Matrix.h.
References bpp::Matrix< Scalar >::operator()().
|
pure virtualinherited |
Create a copy of this object and send a pointer to it.
Implemented in bpp::TestFunction, bpp::InfinityDerivableSecondOrderWrapper, bpp::InfinityDerivableFirstOrderWrapper, bpp::InfinityFunctionWrapper, bpp::LinearMatrix< Scalar >, bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >, bpp::StdErr, bpp::FunctionStopCondition, bpp::ColMatrix< Scalar >, bpp::PlaceboTransformedParameter, bpp::StdOut, bpp::GlobalGraph, bpp::ParametersStopCondition, bpp::StlOutputStreamWrapper, bpp::ReparametrizationDerivableSecondOrderWrapper, bpp::IntervalTransformedParameter, bpp::MetaOptimizer, bpp::IntervalConstraint, bpp::BppUnsignedInteger, bpp::StlOutputStream, bpp::SecondOrderDerivable, bpp::LogsumHmmLikelihood, bpp::RescaledHmmLikelihood, bpp::ReparametrizationDerivableFirstOrderWrapper, bpp::BppInteger, bpp::RowMatrix< Scalar >, bpp::RowMatrix< double >, bpp::RowMatrix< Real >, bpp::Parameter, bpp::Simplex, bpp::LowMemoryRescaledHmmLikelihood, bpp::Table< T >, bpp::AbstractNumericalDerivative, bpp::BppDouble, bpp::RTransformedParameter, bpp::NullOutputStream, bpp::ParametrizableCollection< N >, bpp::FirstOrderDerivable, bpp::OptimizerInterface, bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >, bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >, bpp::ThreePointsNumericalDerivative, bpp::DirichletDiscreteDistribution, bpp::SimpleDiscreteDistribution, bpp::DownhillSimplexMethod, bpp::Number< T >, bpp::Number< double >, bpp::Number< int >, bpp::Number< unsigned int >, bpp::FivePointsNumericalDerivative, bpp::ReparametrizationFunctionWrapper, bpp::DataTable, bpp::PrincipalComponentAnalysis, bpp::DualityDiagram, bpp::TruncatedExponentialDiscreteDistribution, bpp::MetaOptimizerInfos, bpp::BrentOneDimension, bpp::NewtonBacktrackOneDimension, bpp::FunctionOperator< F >, bpp::AutoParameter, bpp::GammaDiscreteDistribution, bpp::MixtureOfDiscreteDistributions, bpp::AliasParameterListener, bpp::Range< T >, bpp::PowellMultiDimensions, bpp::InvariantMixedDiscreteDistribution, bpp::TwoPointsNumericalDerivative, bpp::ParameterListener, bpp::OutputStream, bpp::GoldenSectionSearch, bpp::DirectionFunction, bpp::Point2D< T >, bpp::BetaDiscreteDistribution, bpp::ExponentialDiscreteDistribution, bpp::ParameterList, bpp::CorrespondenceAnalysis, bpp::HmmLikelihood, bpp::GaussianDiscreteDistribution, bpp::BfgsMultiDimensions, bpp::NewtonBacktrackOneDimension::NBODStopCondition, bpp::FullHmmTransitionMatrix, bpp::BppNotANumber, bpp::UniformDiscreteDistribution, bpp::ContingencyTableTest, bpp::Font, bpp::ConstantDistribution, bpp::DiscreteDistributionInterface, bpp::MultipleDiscreteDistribution, bpp::DownhillSimplexMethod::DSMStopCondition, bpp::MathOperator, bpp::BrentOneDimension::BODStopCondition, bpp::ConjugateGradientMultiDimensions, bpp::OptimizationStopCondition, bpp::AutoCorrelationTransitionMatrix, bpp::ParameterEvent, bpp::ComputationTree, bpp::GoldenSectionSearch::GSSStopCondition, bpp::PowellMultiDimensions::PMDStopCondition, bpp::ConstraintInterface, bpp::HmmStateAlphabet, bpp::RGBColor, bpp::SimpleMultiDimensions, bpp::SimpleNewtonMultiDimensions, bpp::HmmEmissionProbabilities, bpp::BinaryOperator, bpp::BppVector< T >, bpp::TransformedParameter, bpp::BppString, bpp::ConstantOperator, bpp::NegativeOperator, bpp::HmmTransitionMatrix, bpp::BppNumberI, bpp::BppBoolean, and bpp::NewtonOneDimension.
Referenced by bpp::FirstOrderDerivable::~FirstOrderDerivable(), and bpp::SecondOrderDerivable::~SecondOrderDerivable().
|
pure virtual |
j | The index of the column. |
Implemented in bpp::LinearMatrix< Scalar >, bpp::ColMatrix< Scalar >, bpp::RowMatrix< Scalar >, bpp::RowMatrix< double >, and bpp::RowMatrix< Real >.
Referenced by bpp::Matrix< Scalar >::equals().
|
inlinevirtual |
Definition at line 44 of file Matrix.h.
References bpp::Matrix< Scalar >::col(), bpp::Matrix< Scalar >::getNumberOfColumns(), bpp::Matrix< Scalar >::getNumberOfRows(), bpp::Matrix< Scalar >::resize(), and bpp::Matrix< Scalar >::row().
|
pure virtual |
Implemented in bpp::LinearMatrix< Scalar >, bpp::ColMatrix< Scalar >, bpp::RowMatrix< Scalar >, bpp::RowMatrix< double >, and bpp::RowMatrix< Real >.
Referenced by bpp::RowMatrix< Real >::addRow(), bpp::PrincipalComponentAnalysis::center(), bpp::DualityDiagram::check_(), bpp::ColMatrix< Scalar >::ColMatrix(), bpp::DualityDiagram::compute_(), bpp::CorrespondenceAnalysis::CorrespondenceAnalysis(), bpp::MatrixTools::covar(), bpp::MatrixTools::det(), bpp::MatrixTools::diag(), bpp::MatrixTools::directSum(), bpp::Matrix< Scalar >::equals(), bpp::MatrixTools::exp(), bpp::MatrixTools::fill(), bpp::MatrixTools::hadamardMult(), bpp::MatrixTools::inv(), bpp::MatrixTools::isSquare(), bpp::MatrixTools::kroneckerMult(), bpp::MatrixTools::lap(), bpp::MatrixTools::max(), bpp::MatrixTools::min(), bpp::MatrixTools::mult(), bpp::RowMatrix< Real >::operator=(), bpp::ColMatrix< Scalar >::operator=(), bpp::LinearMatrix< Scalar >::operator=(), bpp::operator==(), bpp::MatrixTools::pow(), bpp::PrincipalComponentAnalysis::PrincipalComponentAnalysis(), bpp::MatrixTools::print(), bpp::MatrixTools::printForR(), bpp::RowMatrix< Real >::row(), bpp::ColMatrix< Scalar >::row(), bpp::LinearMatrix< Scalar >::row(), bpp::RowMatrix< Real >::RowMatrix(), bpp::AdaptiveKernelDensityEstimation::sampleMean_(), bpp::PrincipalComponentAnalysis::scale(), bpp::MatrixTools::scale(), bpp::LUDecomposition< Real >::solve(), bpp::MatrixTools::sumElements(), bpp::MatrixTools::Taylor(), bpp::MatrixTools::toVVdouble(), bpp::MatrixTools::whichMax(), and bpp::MatrixTools::whichMin().
|
pure virtual |
Implemented in bpp::LinearMatrix< Scalar >, bpp::ColMatrix< Scalar >, bpp::RowMatrix< Scalar >, bpp::RowMatrix< double >, and bpp::RowMatrix< Real >.
Referenced by bpp::ColMatrix< Scalar >::addCol(), bpp::PrincipalComponentAnalysis::center(), bpp::DualityDiagram::check_(), bpp::RowMatrix< Real >::col(), bpp::ColMatrix< Scalar >::col(), bpp::LinearMatrix< Scalar >::col(), bpp::ColMatrix< Scalar >::ColMatrix(), bpp::DualityDiagram::compute_(), bpp::CorrespondenceAnalysis::CorrespondenceAnalysis(), bpp::MatrixTools::covar(), bpp::MatrixTools::det(), bpp::MatrixTools::diag(), bpp::MatrixTools::directSum(), bpp::Matrix< Scalar >::equals(), bpp::MatrixTools::exp(), bpp::MatrixTools::fill(), bpp::MatrixTools::fillDiag(), bpp::MatrixTools::hadamardMult(), bpp::MatrixTools::inv(), bpp::MatrixTools::isSquare(), bpp::MatrixTools::kroneckerMult(), bpp::MatrixTools::lap(), bpp::MatrixTools::max(), bpp::MatrixTools::min(), bpp::MatrixTools::mult(), bpp::RowMatrix< Real >::operator=(), bpp::ColMatrix< Scalar >::operator=(), bpp::LinearMatrix< Scalar >::operator=(), bpp::operator==(), bpp::MatrixTools::pow(), bpp::PrincipalComponentAnalysis::PrincipalComponentAnalysis(), bpp::MatrixTools::print(), bpp::MatrixTools::printForR(), bpp::RowMatrix< Real >::RowMatrix(), bpp::AdaptiveKernelDensityEstimation::sampleMean_(), bpp::PrincipalComponentAnalysis::scale(), bpp::MatrixTools::scale(), bpp::FullHmmTransitionMatrix::setTransitionProbabilities(), bpp::LUDecomposition< Real >::solve(), bpp::MatrixTools::sumElements(), bpp::MatrixTools::Taylor(), bpp::MatrixTools::toVVdouble(), bpp::MatrixTools::whichMax(), and bpp::MatrixTools::whichMin().
|
pure virtual |
i | row index. |
j | column index. |
Implemented in bpp::LinearMatrix< Scalar >, bpp::ColMatrix< Scalar >, bpp::RowMatrix< Scalar >, bpp::RowMatrix< double >, and bpp::RowMatrix< Real >.
Referenced by bpp::RowMatrix< Real >::col(), bpp::ColMatrix< Scalar >::col(), bpp::LinearMatrix< Scalar >::col(), bpp::LinearMatrix< Scalar >::resize(), bpp::RowMatrix< Real >::row(), bpp::ColMatrix< Scalar >::row(), bpp::LinearMatrix< Scalar >::row(), and bpp::Matrix< Scalar >::~Matrix().
|
pure virtual |
i | row index. |
j | column index. |
Implemented in bpp::LinearMatrix< Scalar >, bpp::ColMatrix< Scalar >, bpp::RowMatrix< Scalar >, bpp::RowMatrix< double >, and bpp::RowMatrix< Real >.
|
pure virtual |
Resize the matrix.
nRows | The new number of rows. |
nCols | The new number of columns. |
Implemented in bpp::LinearMatrix< Scalar >, bpp::ColMatrix< Scalar >, bpp::RowMatrix< Scalar >, bpp::RowMatrix< double >, and bpp::RowMatrix< Real >.
Referenced by bpp::MatrixTools::covar(), bpp::MatrixTools::diag(), bpp::MatrixTools::directSum(), bpp::Matrix< Scalar >::equals(), bpp::MatrixTools::getId(), bpp::MatrixTools::hadamardMult(), bpp::MatrixTools::kroneckerMult(), bpp::MatrixTools::mult(), bpp::LUDecomposition< Real >::permuteCopy(), and bpp::LinearMatrix< Scalar >::resize().
|
pure virtual |
i | The index of the row. |
Implemented in bpp::LinearMatrix< Scalar >, bpp::ColMatrix< Scalar >, bpp::RowMatrix< Scalar >, bpp::RowMatrix< double >, and bpp::RowMatrix< Real >.
Referenced by bpp::Matrix< Scalar >::equals(), and bpp::FullHmmTransitionMatrix::setTransitionProbabilities().