Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::Var Class Reference

#include <Variable.h>

Inheritance diagram for PLearn::Var:

Inheritance graph
[legend]
Collaboration diagram for PLearn::Var:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Var ()
 Var *.

 Var (Variable *v)
 Var (Variable *v, const char *name)
 Var (const Var &other)
 Var (const Var &other, const char *name)
 Var (int the_length, int width_=1)
 Var (int the_length, int the_width, const char *name)
 Var (int the_length, const char *name)
 Var (const Vec &vec, bool vertival=true)
 Var (const Mat &mat)
int length () const
int width () const
Var subVec (int start, int len, bool transpose=false) const
Var subMat (int i, int j, int sublength, int subwidth, bool transpose=false) const
Var row (int i, bool transpose=false) const
Var column (int j, bool transpose=false) const
Var operator() (int i) const
Var operator() (int i, int j) const
Var operator[] (int i) const
 take element i of a vector

Var operator[] (Var i) const
Var operator() (Var index) const
 take row i of a matrix

Var operator() (Var i, Var j) const
 take element i,j of a matrix

void operator= (real f)
void operator= (const Vec &v)
void operator= (const Mat &m)

Constructor & Destructor Documentation

PLearn::Var::Var  ) 
 

Var *.

Definition at line 69 of file Variable.cc.

Referenced by operator[](), and subVec().

PLearn::Var::Var Variable v  ) 
 

Definition at line 70 of file Variable.cc.

PLearn::Var::Var Variable v,
const char *  name
 

Definition at line 71 of file Variable.cc.

References PLearn::Variable::setName().

PLearn::Var::Var const Var other  ) 
 

Definition at line 72 of file Variable.cc.

PLearn::Var::Var const Var other,
const char *  name
 

Definition at line 73 of file Variable.cc.

References PLearn::Variable::setName().

PLearn::Var::Var int  the_length,
int  width_ = 1
[explicit]
 

Definition at line 79 of file Variable.cc.

PLearn::Var::Var int  the_length,
int  the_width,
const char *  name
 

Definition at line 82 of file Variable.cc.

References PLearn::Variable::setName().

PLearn::Var::Var int  the_length,
const char *  name
 

Definition at line 75 of file Variable.cc.

References PLearn::Variable::setName().

PLearn::Var::Var const Vec vec,
bool  vertival = true
[explicit]
 

Definition at line 85 of file Variable.cc.

References PLearn::Vec.

PLearn::Var::Var const Mat mat  )  [explicit]
 

Definition at line 89 of file Variable.cc.

References PLearn::Mat.


Member Function Documentation

Var PLearn::Var::column int  j,
bool  transpose = false
const [inline]
 

Definition at line 433 of file Variable.h.

References length(), PLearn::subMat(), and PLearn::transpose().

Referenced by PLearn::VarColumnsVariable::bprop(), PLearn::UnfoldedFuncVariable::fprop(), PLearn::MiniBatchClassificationLossVariable::fprop(), PLearn::ConditionalDensityNet::initializeParams(), and PLearn::PLS::train().

int PLearn::Var::length  )  const
 

Definition at line 93 of file Variable.cc.

Referenced by PLearn::Variable::accg(), PLearn::TransposeProductVariable::bbprop(), PLearn::TanhVariable::bbprop(), PLearn::SubMatVariable::bbprop(), PLearn::SquareVariable::bbprop(), PLearn::SigmoidVariable::bbprop(), PLearn::ProductVariable::bbprop(), PLearn::ProductTransposeVariable::bbprop(), PLearn::PlusVariable::bbprop(), PLearn::PlusScalarVariable::bbprop(), PLearn::PlusRowVariable::bbprop(), PLearn::PlusColumnVariable::bbprop(), PLearn::NegateElementsVariable::bbprop(), PLearn::MinusVariable::bbprop(), PLearn::MinusScalarVariable::bbprop(), PLearn::MinusRowVariable::bbprop(), PLearn::MinusColumnVariable::bbprop(), PLearn::DotProductVariable::bbprop(), PLearn::VarRowsVariable::bprop(), PLearn::VarColumnsVariable::bprop(), PLearn::UnfoldedFuncVariable::bprop(), PLearn::SubMatTransposeVariable::bprop(), PLearn::RowSumVariable::bprop(), PLearn::Max2Variable::bprop(), PLearn::MatrixSoftmaxVariable::bprop(), PLearn::MatrixSoftmaxLossVariable::bprop(), PLearn::MatrixOneHotSquaredLoss::bprop(), PLearn::ExtendedVariable::bprop(), PLearn::ConvolveVariable::bprop(), PLearn::ColumnSumVariable::bprop(), PLearn::AffineTransformWeightPenalty::bprop(), PLearn::UnfoldedFuncVariable::build_(), PLearn::TransposeProductVariable::build_(), PLearn::TimesVariable::build_(), PLearn::TimesColumnVariable::build_(), PLearn::SubsampleVariable::build_(), PLearn::SubMatVariable::build_(), PLearn::SubMatTransposeVariable::build_(), PLearn::RightPseudoInverseVariable::build_(), PLearn::ReshapeVariable::build_(), PLearn::ProjectionErrorVariable::build_(), PLearn::ProductVariable::build_(), PLearn::PowVariableVariable::build_(), PLearn::PlusColumnVariable::build_(), PLearn::NeighborhoodSmoothnessNNet::build_(), PLearn::MinusVariable::build_(), PLearn::MinusTransposedColumnVariable::build_(), PLearn::MinusColumnVariable::build_(), PLearn::Max2Variable::build_(), PLearn::LogAddVariable::build_(), PLearn::LeftPseudoInverseVariable::build_(), PLearn::IsSmallerVariable::build_(), PLearn::IsLargerVariable::build_(), PLearn::EqualVariable::build_(), PLearn::DivVariable::build_(), PLearn::DiagonalizedFactorsProductVariable::build_(), PLearn::DeterminantVariable::build_(), PLearn::ConjGradientOptimizer::build_(), PLearn::ConditionalDensityNet::build_(), column(), PLearn::GaussianContinuum::compute_train_and_validation_costs(), PLearn::displayVarGraph(), PLearn::MixtureRandomVariable::EMBprop(), PLearn::VarElementVariable::fprop(), PLearn::UnfoldedFuncVariable::fprop(), PLearn::SubMatTransposeVariable::fprop(), PLearn::RowSumVariable::fprop(), PLearn::MiniBatchClassificationLossVariable::fprop(), PLearn::Max2Variable::fprop(), PLearn::MatrixSoftmaxVariable::fprop(), PLearn::MatrixSoftmaxLossVariable::fprop(), PLearn::MatrixOneHotSquaredLoss::fprop(), PLearn::MatrixAffineTransformVariable::fprop(), PLearn::MatrixAffineTransformFeedbackVariable::fprop(), PLearn::ExtendedVariable::fprop(), PLearn::ColumnSumVariable::fprop(), PLearn::ArgminVariable::fprop(), PLearn::ArgmaxVariable::fprop(), PLearn::AffineTransformWeightPenalty::fprop(), PLearn::AffineTransformVariable::fprop(), PLearn::GaussianContinuum::initializeParams(), PLearn::ExtendedRandomVariable::invertible(), PLearn::RandomVariable::length(), PLearn::GaussianContinuum::make_random_walk(), PLearn::VarArray::maxLength(), PLearn::VarMeasurer::measure(), PLearn::RandomVarVMatrix::nVars(), PLearn::OldDisplayVarGraph(), PLearn::operator/(), operator[](), PLearn::UnfoldedFuncVariable::printInfo(), PLearn::VarRowsVariable::recomputeSize(), PLearn::VarColumnsVariable::recomputeSize(), PLearn::UnfoldedFuncVariable::recomputeSize(), PLearn::UnequalConstantVariable::recomputeSize(), PLearn::UnaryHardSlopeVariable::recomputeSize(), PLearn::TimesVariable::recomputeSize(), PLearn::TimesScalarVariable::recomputeSize(), PLearn::TimesRowVariable::recomputeSize(), PLearn::TimesConstantVariable::recomputeSize(), PLearn::TimesColumnVariable::recomputeSize(), PLearn::TanhVariable::recomputeSize(), PLearn::SubsampleVariable::recomputeSize(), PLearn::SquareVariable::recomputeSize(), PLearn::SquareRootVariable::recomputeSize(), PLearn::SoftplusVariable::recomputeSize(), PLearn::SoftmaxVariable::recomputeSize(), PLearn::SignVariable::recomputeSize(), PLearn::SigmoidVariable::recomputeSize(), PLearn::RowSumVariable::recomputeSize(), PLearn::RightPseudoInverseVariable::recomputeSize(), PLearn::ProductVariable::recomputeSize(), PLearn::ProductTransposeVariable::recomputeSize(), PLearn::PowVariableVariable::recomputeSize(), PLearn::PowVariable::recomputeSize(), PLearn::PlusVariable::recomputeSize(), PLearn::PlusScalarVariable::recomputeSize(), PLearn::PlusRowVariable::recomputeSize(), PLearn::PlusConstantVariable::recomputeSize(), PLearn::PlusColumnVariable::recomputeSize(), PLearn::PLogPVariable::recomputeSize(), PLearn::PDistributionVariable::recomputeSize(), PLearn::NegateElementsVariable::recomputeSize(), PLearn::MinusVariable::recomputeSize(), PLearn::MinusTransposedColumnVariable::recomputeSize(), PLearn::MinusScalarVariable::recomputeSize(), PLearn::MinusRowVariable::recomputeSize(), PLearn::MinusColumnVariable::recomputeSize(), PLearn::MiniBatchClassificationLossVariable::recomputeSize(), PLearn::Max2Variable::recomputeSize(), PLearn::MatrixSoftmaxVariable::recomputeSize(), PLearn::MatrixSoftmaxLossVariable::recomputeSize(), PLearn::MatrixOneHotSquaredLoss::recomputeSize(), PLearn::MatrixInverseVariable::recomputeSize(), PLearn::LogVariable::recomputeSize(), PLearn::LogSoftmaxVariable::recomputeSize(), PLearn::LogAddVariable::recomputeSize(), PLearn::LeftPseudoInverseVariable::recomputeSize(), PLearn::IsSmallerVariable::recomputeSize(), PLearn::IsMissingVariable::recomputeSize(), PLearn::IsLargerVariable::recomputeSize(), PLearn::IsAboveThresholdVariable::recomputeSize(), PLearn::InvertElementsVariable::recomputeSize(), PLearn::InterValuesVariable::recomputeSize(), PLearn::ExtendedVariable::recomputeSize(), PLearn::ExpVariable::recomputeSize(), PLearn::ErfVariable::recomputeSize(), PLearn::EqualScalarVariable::recomputeSize(), PLearn::EqualConstantVariable::recomputeSize(), PLearn::DuplicateColumnVariable::recomputeSize(), PLearn::DivVariable::recomputeSize(), PLearn::DilogarithmVariable::recomputeSize(), PLearn::CutBelowThresholdVariable::recomputeSize(), PLearn::CutAboveThresholdVariable::recomputeSize(), PLearn::ConvolveVariable::recomputeSize(), PLearn::AbsVariable::recomputeSize(), PLearn::SubMatTransposeVariable::rfprop(), PLearn::ExtendedVariable::rfprop(), PLearn::RVInstance::RVInstance(), PLearn::SubVecRandomVariable::setValueFromParentsValue(), PLearn::soft_slope_limit(), subVec(), PLearn::VarArray::sumOfLengths(), PLearn::VarRowVariable::symbolicBprop(), PLearn::VarElementVariable::symbolicBprop(), PLearn::SubMatVariable::symbolicBprop(), PLearn::SubMatTransposeVariable::symbolicBprop(), PLearn::SoftmaxLossVariable::symbolicBprop(), PLearn::ReshapeVariable::symbolicBprop(), PLearn::OneHotSquaredLoss::symbolicBprop(), PLearn::MinVariable::symbolicBprop(), PLearn::MaxVariable::symbolicBprop(), PLearn::MatrixAffineTransformVariable::symbolicBprop(), PLearn::ExtendedVariable::symbolicBprop(), PLearn::ConcatRowsVariable::symbolicBprop(), PLearn::ColumnIndexVariable::symbolicBprop(), PLearn::transpose(), and PLearn::GaussianProcessRegressor::variance().

Var PLearn::Var::operator() Var  i,
Var  j
const
 

take element i,j of a matrix

Definition at line 138 of file Variable.cc.

References width().

Var PLearn::Var::operator() Var  index  )  const
 

take row i of a matrix

Definition at line 135 of file Variable.cc.

Var PLearn::Var::operator() int  i,
int  j
const [inline]
 

Definition at line 443 of file Variable.h.

References PLearn::subMat().

Var PLearn::Var::operator() int  i  )  const [inline]
 

Definition at line 438 of file Variable.h.

References row().

Referenced by operator[]().

void PLearn::Var::operator= const Mat m  ) 
 

Definition at line 157 of file Variable.cc.

References PLearn::PP< Variable >::isNull(), and PLERROR.

void PLearn::Var::operator= const Vec v  ) 
 

Definition at line 149 of file Variable.cc.

References PLearn::PP< Variable >::isNull(), and PLERROR.

void PLearn::Var::operator= real  f  ) 
 

Definition at line 141 of file Variable.cc.

References PLearn::PP< Variable >::isNull(), and PLERROR.

Var PLearn::Var::operator[] Var  i  )  const
 

Definition at line 109 of file Variable.cc.

References PLERROR, and width().

Var PLearn::Var::operator[] int  i  )  const
 

take element i of a vector

Definition at line 99 of file Variable.cc.

References length(), operator()(), PLERROR, Var(), and width().

Var PLearn::Var::row int  i,
bool  transpose = false
const [inline]
 

Definition at line 428 of file Variable.h.

References PLearn::subMat(), PLearn::transpose(), and width().

Referenced by PLearn::VarRowsVariable::bprop(), PLearn::MiniBatchClassificationLossVariable::fprop(), and operator()().

Var PLearn::Var::subMat int  i,
int  j,
int  sublength,
int  subwidth,
bool  transpose = false
const
 

Definition at line 116 of file Variable.cc.

Var PLearn::Var::subVec int  start,
int  len,
bool  transpose = false
const
 

Definition at line 124 of file Variable.cc.

References length(), PLERROR, PLearn::subMat(), PLearn::transpose(), Var(), and width().

Referenced by PLearn::MixtureRandomVariable::ElogP(), PLearn::ExtendedRandomVariable::invertible(), PLearn::JointRandomVariable::invertible(), and PLearn::MixtureRandomVariable::logP().

int PLearn::Var::width  )  const
 

Definition at line 96 of file Variable.cc.

Referenced by PLearn::Variable::accg(), PLearn::SubMatVariable::bbprop(), PLearn::VarElementVariable::bprop(), PLearn::UnfoldedFuncVariable::bprop(), PLearn::SubMatVariable::bprop(), PLearn::SubMatTransposeVariable::bprop(), PLearn::RowSumVariable::bprop(), PLearn::MatrixSoftmaxVariable::bprop(), PLearn::ExtendedVariable::bprop(), PLearn::ConvolveVariable::bprop(), PLearn::ColumnSumVariable::bprop(), PLearn::ColumnIndexVariable::bprop(), PLearn::AffineTransformWeightPenalty::bprop(), PLearn::UnfoldedFuncVariable::build_(), PLearn::TimesVariable::build_(), PLearn::TimesRowVariable::build_(), PLearn::SubsampleVariable::build_(), PLearn::SubMatVariable::build_(), PLearn::SubMatTransposeVariable::build_(), PLearn::RightPseudoInverseVariable::build_(), PLearn::ReshapeVariable::build_(), PLearn::ProjectionErrorVariable::build_(), PLearn::ProductVariable::build_(), PLearn::ProductTransposeVariable::build_(), PLearn::PowVariableVariable::build_(), PLearn::PlusRowVariable::build_(), PLearn::NeighborhoodSmoothnessNNet::build_(), PLearn::MinusVariable::build_(), PLearn::MinusTransposedColumnVariable::build_(), PLearn::MinusRowVariable::build_(), PLearn::Max2Variable::build_(), PLearn::LogAddVariable::build_(), PLearn::LeftPseudoInverseVariable::build_(), PLearn::IsSmallerVariable::build_(), PLearn::IsLargerVariable::build_(), PLearn::EqualVariable::build_(), PLearn::DivVariable::build_(), PLearn::DiagonalizedFactorsProductVariable::build_(), PLearn::DeterminantVariable::build_(), PLearn::GaussianContinuum::compute_train_and_validation_costs(), PLearn::displayVarGraph(), PLearn::VarElementVariable::fprop(), PLearn::UnfoldedFuncVariable::fprop(), PLearn::SubMatVariable::fprop(), PLearn::SubMatTransposeVariable::fprop(), PLearn::RowSumVariable::fprop(), PLearn::MiniBatchClassificationLossVariable::fprop(), PLearn::MatrixSoftmaxVariable::fprop(), PLearn::MatrixAffineTransformFeedbackVariable::fprop(), PLearn::ExtendedVariable::fprop(), PLearn::ColumnSumVariable::fprop(), PLearn::ColumnIndexVariable::fprop(), PLearn::ArgminVariable::fprop(), PLearn::ArgmaxVariable::fprop(), PLearn::GaussianContinuum::make_random_walk(), PLearn::matrixIndex(), PLearn::VarArray::maxWidth(), PLearn::OldDisplayVarGraph(), operator()(), PLearn::operator/(), PLearn::operator<<(), operator[](), PLearn::UnfoldedFuncVariable::printInfo(), PLearn::VarRowVariable::recomputeSize(), PLearn::VarRowsVariable::recomputeSize(), PLearn::UnfoldedFuncVariable::recomputeSize(), PLearn::UnequalConstantVariable::recomputeSize(), PLearn::UnaryHardSlopeVariable::recomputeSize(), PLearn::TransposeProductVariable::recomputeSize(), PLearn::TimesVariable::recomputeSize(), PLearn::TimesScalarVariable::recomputeSize(), PLearn::TimesRowVariable::recomputeSize(), PLearn::TimesConstantVariable::recomputeSize(), PLearn::TimesColumnVariable::recomputeSize(), PLearn::TanhVariable::recomputeSize(), PLearn::SubsampleVariable::recomputeSize(), PLearn::SquareVariable::recomputeSize(), PLearn::SquareRootVariable::recomputeSize(), PLearn::SoftplusVariable::recomputeSize(), PLearn::SoftmaxVariable::recomputeSize(), PLearn::SignVariable::recomputeSize(), PLearn::SigmoidVariable::recomputeSize(), PLearn::RowAtPositionVariable::recomputeSize(), PLearn::RightPseudoInverseVariable::recomputeSize(), PLearn::ProductVariable::recomputeSize(), PLearn::ProductTransposeVariable::recomputeSize(), PLearn::PowVariableVariable::recomputeSize(), PLearn::PowVariable::recomputeSize(), PLearn::PlusVariable::recomputeSize(), PLearn::PlusScalarVariable::recomputeSize(), PLearn::PlusRowVariable::recomputeSize(), PLearn::PlusConstantVariable::recomputeSize(), PLearn::PlusColumnVariable::recomputeSize(), PLearn::PLogPVariable::recomputeSize(), PLearn::PDistributionVariable::recomputeSize(), PLearn::NegateElementsVariable::recomputeSize(), PLearn::MinusVariable::recomputeSize(), PLearn::MinusTransposedColumnVariable::recomputeSize(), PLearn::MinusScalarVariable::recomputeSize(), PLearn::MinusRowVariable::recomputeSize(), PLearn::MinusColumnVariable::recomputeSize(), PLearn::MiniBatchClassificationLossVariable::recomputeSize(), PLearn::Max2Variable::recomputeSize(), PLearn::MatrixSoftmaxVariable::recomputeSize(), PLearn::MatrixSoftmaxLossVariable::recomputeSize(), PLearn::MatrixOneHotSquaredLoss::recomputeSize(), PLearn::MatrixInverseVariable::recomputeSize(), PLearn::MatrixAffineTransformVariable::recomputeSize(), PLearn::LogVariable::recomputeSize(), PLearn::LogSoftmaxVariable::recomputeSize(), PLearn::LogAddVariable::recomputeSize(), PLearn::LeftPseudoInverseVariable::recomputeSize(), PLearn::IsSmallerVariable::recomputeSize(), PLearn::IsMissingVariable::recomputeSize(), PLearn::IsLargerVariable::recomputeSize(), PLearn::IsAboveThresholdVariable::recomputeSize(), PLearn::InvertElementsVariable::recomputeSize(), PLearn::ExtendedVariable::recomputeSize(), PLearn::ExpVariable::recomputeSize(), PLearn::ErfVariable::recomputeSize(), PLearn::EqualScalarVariable::recomputeSize(), PLearn::EqualConstantVariable::recomputeSize(), PLearn::DuplicateRowVariable::recomputeSize(), PLearn::DivVariable::recomputeSize(), PLearn::DilogarithmVariable::recomputeSize(), PLearn::CutBelowThresholdVariable::recomputeSize(), PLearn::CutAboveThresholdVariable::recomputeSize(), PLearn::ConvolveVariable::recomputeSize(), PLearn::ColumnSumVariable::recomputeSize(), PLearn::ColumnIndexVariable::recomputeSize(), PLearn::AffineTransformVariable::recomputeSize(), PLearn::AbsVariable::recomputeSize(), PLearn::VarElementVariable::rfprop(), PLearn::SubMatVariable::rfprop(), PLearn::SubMatTransposeVariable::rfprop(), PLearn::ExtendedVariable::rfprop(), row(), PLearn::soft_slope_limit(), subVec(), PLearn::VarArray::sumOfWidths(), PLearn::VarElementVariable::symbolicBprop(), PLearn::SubMatVariable::symbolicBprop(), PLearn::SubMatTransposeVariable::symbolicBprop(), PLearn::ReshapeVariable::symbolicBprop(), PLearn::MinVariable::symbolicBprop(), PLearn::MaxVariable::symbolicBprop(), PLearn::MatrixAffineTransformVariable::symbolicBprop(), PLearn::ExtendedVariable::symbolicBprop(), PLearn::ConcatColumnsVariable::symbolicBprop(), PLearn::ColumnIndexVariable::symbolicBprop(), PLearn::transpose(), and PLearn::RandomVariable::width().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:25:55 2004 for PLearn by doxygen 1.3.7