STK++ 0.9.13
|
The Arrays project provides two kinds of arrays for storing in a two entries arrays (matrices) numeric data. More...
Modules | |
Slicing Visitors | |
A slicing visitor is applied on each column/row of an Expression or Array by using global functions in the STK domain space. | |
Namespaces | |
namespace | STK::Arrays |
the namespace Arrays contain the enum and utilities method used by the containers classes. | |
Classes | |
class | STK::CAllocator< Type_, SizeRows_, SizeCols_, Orient_ > |
Allocator for dense Array classes. More... | |
class | STK::OrientedCAllocator< Derived, Arrays::by_col_ > |
Specialization for column-oriented Allocators. More... | |
class | STK::OrientedCAllocator< Derived, Arrays::by_row_ > |
Specialization for row-oriented Allocators. More... | |
class | STK::StructuredCAllocator< Derived, SizeRows_, SizeCols_ > |
Base class for the general by_col_ structured case. More... | |
class | STK::StructuredCAllocator< Derived, 1, SizeCols_ > |
specialization for the point_ case (derived class is a RowVector). More... | |
class | STK::StructuredCAllocator< Derived, SizeRows_, 1 > |
specialization for the vector_ case. More... | |
class | STK::StructuredCAllocator< Derived, 1, 1 > |
specialization for the number_ case. More... | |
struct | STK::MemAllocator< Type_, Size_ > |
template base class for all Allocator classes. More... | |
class | STK::MemSAllocator< Type_, NzMax_, Size_ > |
memory allocator for sparse Array classes. More... | |
class | STK::MemSAllocator1D< Type_, NzMax_ > |
memory allocator for sparse vectors classes. More... | |
struct | STK::BiDirectionalIterator< Array > |
BiDirectionalIterator allows to loop over the element of one dimensional list containers. More... | |
struct | STK::ConstBiDirectionalIterator< Array > |
ConstBiDirectionalIterator allows to loop over the element of one dimensional list containers. More... | |
struct | STK::hidden::IteratorTraits< Derived > |
, More... | |
struct | STK::DenseIteratorBase< Derived > |
IteratorBase is a base class for all iterators on dense arrays/matrix/vector/expressions. More... | |
struct | STK::DenseRandomIterator< Array_ > |
DenseRandomIterator allows to loop over the elements of containers Array. More... | |
struct | STK::ConstDenseRandomIterator< Array > |
ConstDenseRandomIterator allows to loop over the elements of containers Array. More... | |
class | STK::InnerIteratorBase< Array, Derived > |
InnerIteratorBase is a base class for all iterators on allocators. More... | |
struct | STK::SparseIteratorBase< Derived > |
IteratorBase is a base class for all iterators on dense arrays/matrix/vector/expressions. More... | |
class | STK::BinaryOperator< FunctorOp, Lhs, Rhs > |
Generic expression where a binary operator is applied to two expressions. More... | |
class | STK::UnaryOperator< UnaryOp, Lhs > |
Generic expression when unary operator is applied to an expression. More... | |
class | STK::DotProduct< Lhs, Rhs > |
Generic expression where a DotProduct is applied to two expressions. More... | |
class | STK::ArrayByDiagonalProduct< Lhs, Rhs > |
Generic expression where a product operator is applied to two expressions. More... | |
class | STK::DiagonalByArrayProduct< Lhs, Rhs > |
Generic expression where a product operator is applied to two expressions. More... | |
class | STK::VectorByPointProduct< Lhs, Rhs > |
Generic expression where a product operator is applied to two expressions. More... | |
class | STK::PointByArrayProduct< Lhs, Rhs > |
Generic expression where a product operator is applied to two expressions. More... | |
class | STK::ArrayByVectorProduct< Lhs, Rhs > |
Generic expression where a product operator is applied to two expressions. More... | |
class | STK::ArrayByArrayProduct< Lhs, Rhs > |
Generic expression where a product operator is applied to two expressions. More... | |
class | STK::Array1D< Type_, Size_ > |
template one dimensional Arrays. More... | |
class | STK::Array2D< Type_ > |
template two dimensional column (vertically) oriented Array. More... | |
struct | STK::Arrays::SumOp< Lhs, Rhs > |
Array sum (by coefficient) Perform the matrix sum coefficient by coefficient of the Array lhs by the Array rhs. More... | |
struct | STK::Arrays::DifferenceOp< Lhs, Rhs > |
Array difference (by coefficient) Perform the matrix difference coefficient by coefficient of the Array lhs by the Array rhs. More... | |
struct | STK::Arrays::Product< Lhs, Rhs > |
Array product (by coefficient) Perform the matrix product coefficient by coefficient of the Array lhs by the Array rhs. More... | |
struct | STK::Arrays::DivOp< Lhs, Rhs > |
Matricial Division. More... | |
struct | STK::Arrays::MultOp< Lhs, Rhs > |
Array multiplication Perform the matrix product of the Array lhs by the Array rhs. More... | |
struct | STK::Arrays::MultLeftTransposeOp< Lhs, Rhs > |
Array multiplication Perform the matrix product of the transposed Array lhs by the Array rhs. More... | |
struct | STK::Arrays::MultRightTransposeOp< Lhs, Rhs > |
Array multiplication Perform the matrix product of the Array lhs by the transposed Array rhs. More... | |
class | STK::Array2DDiagonal< Type_ > |
Derivation of the Array2DDiagonal class for square arrays of Real. More... | |
class | STK::Array2DLowerTriangular< Type_ > |
Declaration of the lower triangular matrix class. More... | |
class | STK::Array2DNumber< Type_ > |
template number Array. More... | |
class | STK::Array2DPoint< Type_ > |
template one dimensional horizontal Array. More... | |
class | STK::Array2DSquare< Type_ > |
Derivation of the Array2DSquare class for square arrays of Real. More... | |
class | STK::Array2DUpperTriangular< Type_ > |
Declaration of the upper triangular matrix class. More... | |
class | STK::Array2DVector< Type_ > |
template one dimensional horizontal Array. More... | |
class | STK::ArrayBase< Derived > |
base class for template arrays. More... | |
struct | STK::hidden::Traits< Derived > |
, More... | |
struct | STK::hidden::FunctorTraits< Derived, Functor > |
, Utility class that will select the type of operator to apply. More... | |
class | STK::CArray< Type_, SizeRows_, SizeCols_, Orient_ > |
A CArray is a two dimensional array with a continuous storage like a C-array. More... | |
class | STK::CArrayNumber< Type_, Orient_ > |
specialization for the number case. More... | |
class | STK::CArrayPoint< Type_, SizeCols_, Orient_ > |
declaration of the point case. More... | |
class | STK::CArraySquare< Type_, Size_, Orient_ > |
specialization for the square case. More... | |
class | STK::CArrayVector< Type_, SizeRows_, Orient_ > |
specialization for the vector case. More... | |
class | STK::Const::Identity< Type_, Size_ > |
Define the constant identity matrix. More... | |
class | STK::Const::Square< Type_, Size_ > |
Define the constant square matrix. More... | |
class | STK::Const::Array< Type_, SizeRows_, SizeCols_ > |
Define the constant general matrix. More... | |
class | STK::Const::UpperTriangular< Type_, SizeRows_, SizeCols_ > |
Define the constant upper triangular matrix. More... | |
class | STK::Const::LowerTriangular< Type_, SizeRows_, SizeCols_ > |
Define the constant lower triangular matrix. More... | |
class | STK::Const::Point< Type_, Size_ > |
Define the constant point. More... | |
class | STK::Const::Vector< Type_, Size_ > |
Define the constant point. More... | |
class | STK::ExprBase< Derived > |
base class for template evaluation expressions and visitors. More... | |
struct | STK::ApplyFunctorByCol< Derived, Functor > |
class allowing to apply the Functor Functor on each columns of an expression. More... | |
struct | STK::ApplyWeightedFunctorByCol< Derived, Functor > |
class allowing to apply the weighted Functor Functor on each columns of an expression. More... | |
struct | STK::ApplyFunctorByRow< Derived, Functor > |
class allowing to apply the Functor Functor on each rows of an expression. More... | |
struct | STK::ApplyWeightedFunctorByRow< Derived, Functor > |
class allowing to apply the Functor Functor on each rows of an expression. More... | |
struct | STK::ApplyFunctor< Derived, Functor > |
class allowing applying the functor Functor on a vector or row-vector More... | |
struct | STK::ApplyWeightedFunctor< Derived, Functor > |
class allowing applying the weighted functor Functor on a vector or row-vector More... | |
class | STK::IArray1D< Derived > |
template one dimensional Array. More... | |
class | STK::IArray2D< Derived > |
template interface base class for two-dimensional arrays. More... | |
class | STK::IContainer2D< SizeRows_, SizeCols_ > |
Interface base class for 2D containers. More... | |
struct | STK::TRef< ref_ > |
Base class for all referencing containers. More... | |
struct | STK::TRef< 0 > |
struct | STK::TRef< 1 > |
struct | STK::TRef<-1 > |
class | STK::ITContainerBase< Derived > |
Interface base class for 2D containers. More... | |
class | STK::ITContainer< Derived, Structure_ > |
Specialized interface class for all arrays (can be either 2D arrays or 1D arrays). More... | |
class | STK::ITContainer< Derived, Arrays::array2D_ > |
Specialization for array2D_. More... | |
class | STK::ITContainer< Derived, Arrays::square_ > |
class | STK::ITContainer< Derived, Arrays::lower_triangular_ > |
Specialization for lower_triangular_. More... | |
class | STK::ITContainer< Derived, Arrays::upper_triangular_ > |
Specialization for upper_triangular_. More... | |
class | STK::ITContainer< Derived, Arrays::symmetric_ > |
class | STK::ITContainer< Derived, Arrays::lower_symmetric_ > |
Specialization for lower_symmetric_. More... | |
class | STK::ITContainer< Derived, Arrays::upper_symmetric_ > |
Specialization for upper_symmetric_. More... | |
class | STK::ITContainer< Derived, Arrays::diagonal_ > |
Specialization for diagonal_. More... | |
class | STK::ITContainer< Derived, Arrays::vector_ > |
Specialization for vector_. More... | |
class | STK::ITContainer< Derived, Arrays::point_ > |
Specialization for point_. More... | |
class | STK::ITContainer< Derived, Arrays::number_ > |
Specialization for number_. More... | |
class | STK::ITContainer1D< Derived > |
Interface base class for homogeneous 1D containers. More... | |
class | STK::ITContainer2D< Derived > |
Interface base class for homogeneous 2D containers like allocators. More... | |
class | STK::SArray1D< Type_, Size_, NzMax_ > |
template one dimensional Arrays. More... | |
class | STK::SArray2D< Type_ > |
template sparse two dimensional column (vertically) oriented Array. More... | |
class | STK::SArray2DDiagonal< Type_ > |
Derivation of the SArray2DDiagonal class for square arrays of Real. More... | |
class | STK::SArray2DLowerTriangular< Type_ > |
Declaration of the lower triangular matrix class. More... | |
class | STK::SArray2DNumber< Type_ > |
template number Array. More... | |
class | STK::SArray2DPoint< Type_ > |
template one dimensional horizontal Array. More... | |
class | STK::SArray2DSquare< Type_ > |
Derivation of the SArray2DSquare class for square arrays of Real. More... | |
class | STK::SArray2DUpperTriangular< Type_ > |
Declaration of the upper triangular matrix class. More... | |
class | STK::SArray2DVector< Type_ > |
template one dimensional horizontal Array. More... | |
class | STK::DiagonalizeAccessor< Lhs > |
Generic expression when a one dimensional vector/point/idagonal expression is "diagonalized". More... | |
class | STK::DiagonalGetterAccessor< Lhs > |
Generic expression when we want to get the diagonal of a two-dimensional square expression. More... | |
class | STK::UpperTriangularizeAccessor< Lhs > |
Generic expression when we want to get the upper-part of a two-dimensional expression. More... | |
class | STK::LowerTriangularizeAccessor< Lhs > |
Generic expression when we want to get the lower-part of a two-dimensional expression. More... | |
class | STK::SymmetrizeAccessor< Lhs > |
Generic expression when we want to get the upper-part of a two-dimensional symmetric expression. More... | |
class | STK::UpperSymmetrizeAccessor< Lhs > |
Generic expression when we want to get the upper-part of a two-dimensional symmetric expression. More... | |
class | STK::LowerSymmetrizeAccessor< Lhs > |
Generic expression when we want to get the lower-part of a two-dimensional symmetric expression. More... | |
class | STK::DiagonalizeOperator< Lhs > |
Generic expression when a one dimensional vector/point/idagonal expression is "diagonalized". More... | |
class | STK::DiagonalGetterOperator< Lhs > |
Generic expression when we want to get the diagonal of a two-dimensional square expression. More... | |
class | STK::UpperTriangularizeOperator< Lhs > |
Generic expression when we want to get the upper-part of a two-dimensional expression. More... | |
class | STK::LowerTriangularizeOperator< Lhs > |
Generic expression when we want to get the lower-part of a two-dimensional expression. More... | |
class | STK::SymmetrizeOperator< Lhs > |
Generic expression when we want to get the upper-part of a two-dimensional symmetric expression. More... | |
class | STK::UpperSymmetrizeOperator< Lhs > |
Generic expression when we want to get the upper-part of a two-dimensional symmetric expression. More... | |
class | STK::LowerSymmetrizeOperator< Lhs > |
Generic expression when we want to get the lower-part of a two-dimensional symmetric expression. More... | |
class | STK::RowAccessor< Lhs > |
Generic expression when the row of an expression is accessed. More... | |
class | STK::ColAccessor< Lhs > |
Generic expression when the column of an expression is accessed. More... | |
class | STK::SubVectorOperator< Lhs, Size_ > |
Generic expression when the sub-part of an expression is accessed (specialization for vectors) More... | |
class | STK::SubVectorOperatorBase< Lhs, Size_, Structure_ > |
Specialization for point_. More... | |
class | STK::SubAccessor< Lhs, SizeRows_, SizeCols_ > |
Generic expression when the sub-part of an expression is accessed. More... | |
class | STK::RowOperator< Lhs > |
Generic expression when the row of an expression is accessed. More... | |
class | STK::ColOperator< Lhs > |
Generic expression when the column of an expression is accessed. More... | |
class | STK::SubOperator< Lhs, SizeRows_, SizeCols_ > |
Generic expression when the sub-part of an expression is accessed. More... | |
class | STK::TransposeAccessor< Lhs > |
Generic expression when an expression is transposed. More... | |
class | STK::TransposeOperator< Lhs > |
Generic expression when an expression is transposed. More... | |
class | STK::ICArray< Derived > |
s More... | |
class | STK::ISparseArray1D< Derived > |
Interface class for SparseArray1D. More... | |
Typedefs | |
typedef Array2D< Real > | STK::ArrayXX |
Specialization of the Array2D class for Real values. | |
typedef Array2DLowerTriangular< Real > | STK::ArrayLowerTriangularXX |
Specialization of the Array2D class for lower triangular matrices. | |
typedef Array2DNumber< Real > | STK::Number |
final class for a Real horizontal container. | |
typedef Array2DPoint< Real > | STK::PointX |
final class for a Real horizontal container. | |
typedef Array2DUpperTriangular< Real > | STK::ArrayUpperTriangularXX |
Specialization of the Array2D class for Type values. | |
typedef Array2DVector< Real > | STK::Vector |
final class for a Real vertical container. | |
typedef TRef<-1 > | STK::IContainerRef |
typedef SArray2D< Real > | STK::SArrayXX |
Specialization of the SArray2D class for Real values. | |
typedef SArray2DLowerTriangular< Real > | STK::SArrayLowerTriangularXX |
Specialization of the SArray2D class for lower triangular matrices. | |
typedef SArray2DNumber< Real > | STK::SNumberX |
final class for a Real horizontal container. | |
typedef SArray2DPoint< Real > | STK::SPointX |
final class for a Real horizontal container. | |
typedef SArray2DUpperTriangular< Real > | STK::SArrayUpperTriangularXX |
Specialization of the SArray2D class for Type values. | |
typedef SArray2DVector< Real > | STK::SVectorX |
final class for a Real vertical container. | |
Functions | |
template<typename Lhs , typename Rhs > | |
Arrays::SumOp< Lhs, Rhs >::result_type | STK::sum (Lhs const &lhs, Rhs const &rhs) |
convenience function for summing two arrays | |
template<typename Lhs , typename Rhs > | |
Arrays::DifferenceOp< Lhs, Rhs >::result_type | STK::difference (Lhs const &lhs, Rhs const &rhs) |
convenience function for differencing two arrays | |
template<typename Lhs , typename Rhs > | |
Arrays::Product< Lhs, Rhs >::result_type | STK::product (Lhs const &lhs, Rhs const &rhs) |
convenience function for the product element by element of two arrays | |
template<typename Lhs , typename Rhs > | |
Arrays::DivOp< Lhs, Rhs >::result_type | STK::div (Lhs const &lhs, Rhs const &rhs) |
convenience function for the division element by element of two arrays | |
template<typename Lhs , typename Rhs > | |
Arrays::MultOp< Lhs, Rhs >::result_type | STK::mult (Lhs const &lhs, Rhs const &rhs) |
convenience function for the multiplication of two matrices | |
template<typename Lhs , typename Rhs , typename Weights > | |
Arrays::MultOp< Lhs, Rhs >::result_type | STK::wmult (Lhs const &lhs, Rhs const &rhs, Weights const &weights) |
convenience function for the multiplication of two matrices | |
template<typename Lhs , typename Rhs > | |
Arrays::MultLeftTransposeOp< Lhs, Rhs >::result_type | STK::multLeftTranspose (Lhs const &lhs, Rhs const &rhs) |
convenience function for the multiplication of two matrices | |
template<typename Lhs , typename Rhs , typename Weights > | |
Arrays::MultLeftTransposeOp< Lhs, Rhs >::result_type | STK::wmultLeftTranspose (Lhs const &lhs, Rhs const &rhs, Weights const &weights) |
convenience function for the multiplication of two matrices | |
template<typename Lhs , typename Rhs > | |
Arrays::MultRightTransposeOp< Lhs, Rhs >::result_type | STK::multRightTranspose (Lhs const &lhs, Rhs const &rhs) |
convenience function for the multiplication of two matrices | |
template<typename Lhs , typename Rhs , typename Weights > | |
Arrays::MultRightTransposeOp< Lhs, Rhs >::result_type | STK::wmultRightTranspose (Lhs const &lhs, Rhs const &rhs, Weights const &weights) |
convenience function for the multiplication of two matrices | |
template<class Container1D1 , class Container1D2 > | |
Real | STK::dot (ExprBase< Container1D1 > const &x, ExprBase< Container1D2 > const &y) |
Compute the dot product. | |
template<class Container1D1 , class Container1D2 , class Container1D3 > | |
Real | STK::weightedDot (ExprBase< Container1D1 > const &x, ExprBase< Container1D2 > const &y, ExprBase< Container1D3 > const &w) |
Compute the dot product. | |
template<class Container1D1 , class Container1D2 > | |
Real | STK::dist (ExprBase< Container1D1 > const &x, ExprBase< Container1D2 > const &y) |
Compute the distance between two vectors. | |
template<class Container1D1 , class Container1D2 , class Container1D3 > | |
Real | STK::weightedDist (ExprBase< Container1D1 > const &x, ExprBase< Container1D2 > const &y, ExprBase< Container1D3 > const &w) |
Compute the weighted distance between two vectors. | |
template<typename Derived > | |
Array2DSquare< typename Derived::Type > | STK::multLeftTranspose (ExprBase< Derived > const &A) |
Array multiplication by its transpose. | |
template<typename Derived > | |
Array2DSquare< typename Derived::Type > | STK::multRightTranspose (ExprBase< Derived > const &A) |
Array multiplication by its transpose. | |
template<typename Derived , typename Weights > | |
Array2DSquare< typename Derived::Type > | STK::weightedMultLeftTranspose (ExprBase< Derived > const &A, ExprBase< Weights > const &weights) |
Weighted matrix multiplication by its transpose. | |
template<typename Derived , typename Weights > | |
Array2DSquare< typename Derived::Type > | STK::weightedMultRightTranspose (ExprBase< Derived > const &A, ExprBase< Weights > const &weights) |
weighted Array multiplication by its transpose | |
String | STK::Arrays::structureToString (Structure const &type) |
convert an Arrays::Structure to a String. | |
template<typename Type , int SizeRows_, int SizeCols_, bool Orient_> | |
ostream & | STK::operator<< (ostream &s, const CAllocator< Type, SizeRows_, SizeCols_, Orient_ > &V) |
output stream for CAllocator. | |
template<class Array > | |
ostream & | STK::out2D (ostream &os, ITContainer< Array > const &V) |
Method for displaying any two dimensional Array or Expression. | |
template<class Array > | |
ostream & | STK::out1D (ostream &os, ITContainer1D< Array > const &V) |
Method for displaying any one dimensional Array. | |
template<class Array > | |
ostream & | STK::operator<< (ostream &s, ITContainer< Array > const &V) |
overload of the << operator for all Arrays and Expressions. | |
template<class Type > | |
ostream & | STK::operator<< (ostream &s, const ITContainer1D< Type > &V) |
overload of the << operator for all 1D containers. | |
int | STK::Arrays::evalSizeCapacity (int m) |
template<int Size_> | |
TRange< Size_ > | STK::Arrays::evalRangeCapacity (TRange< Size_ > const &I) |
template<> | |
Range | STK::Arrays::evalRangeCapacity (Range const &I) |
Specialization for array with unknown size. | |
The Arrays project provides two kinds of arrays for storing in a two entries arrays (matrices) numeric data.
All the containers you can used in order to stored numeric values are template by the Type of numeric value you want to use. Some predefined type have been defined for the Real and the arithmetic cases.
There is two kind of containers that have been defined and implemented in the STK++ project:
Moreover a Meta-template mechanism (lazy evaluation) for optimization of complex expressions at compile time is available. It is possible to mix any kind of array in such expressions.
Specialization of the Array2D class for lower triangular matrices.
An Array2DLowerTriangular is a column oriented 2D container of Real whcih is lower triangular.
Definition at line 57 of file STK_Array2DLowerTriangular.h.
Specialization of the Array2D class for Type values.
A Array2DLowerTriangular is a column oriented 2D container of Type whcih is lower triangular.
Definition at line 55 of file STK_Array2DUpperTriangular.h.
Specialization of the Array2D class for Real values.
An Array is a column oriented 2D container of Real.
Definition at line 53 of file STK_Array2D.h.
Definition at line 102 of file STK_IContainerRef.h.
final class for a Real horizontal container.
A Number is a row oriented 1D container of Real.
Definition at line 52 of file STK_Array2DNumber.h.
final class for a Real horizontal container.
A Point is a row oriented 1D container of Real.
Definition at line 53 of file STK_Array2DPoint.h.
Specialization of the SArray2D class for lower triangular matrices.
An SArray2DLowerTriangular is a column oriented 2D container of Real whcih is lower triangular.
Definition at line 59 of file STK_SArray2DLowerTriangular.h.
Specialization of the SArray2D class for Type values.
A SArray2DLowerTriangular is a column oriented 2D container of Type whcih is lower triangular.
Definition at line 57 of file STK_SArray2DUpperTriangular.h.
Specialization of the SArray2D class for Real values.
An Array is a column oriented 2D container of Real.
Definition at line 55 of file STK_SArray2D.h.
final class for a Real horizontal container.
A Number is a row oriented 1D container of Real.
Definition at line 54 of file STK_SArray2DNumber.h.
final class for a Real horizontal container.
A Point is a row oriented 1D container of Real.
Definition at line 55 of file STK_SArray2DPoint.h.
final class for a Real vertical container.
A Vector is a column oriented 1D container of Real.
Definition at line 60 of file STK_SArray2DVector.h.
final class for a Real vertical container.
A Vector is a column oriented 1D container of Real.
Definition at line 58 of file STK_Array2DVector.h.
Kind of operators leading to a BinaryOperator or UnaryOperator.
This enum list the operators leading to binary or unary operators. If both the left-hand side and the right-hand side are expressions then we get a BinaryOperator while if the left-hand side is an expression and right hand side is a number then we get an UnaryOperator. For example, the return type of matrix1+matrix2 is a BinaryOperator. The return type of number+number is an UnaryOperator.
Definition at line 103 of file STK_Arrays_Util.h.
Kind of operands in a BinaryOperator.
Definition at line 132 of file STK_Arrays_Util.h.
Define the Storage Orientation of the container.
Enumerator | |
---|---|
by_row_ | storage by row |
by_col_ | storage by column |
Definition at line 59 of file STK_Arrays_Util.h.
Allow to disambiguate which rows() or cols() methods must be used which array to use when calling rows(), cols(), range() in Unary, Binary, Reshape,... operators.
Definition at line 191 of file STK_Arrays_Util.h.
Define the different type of Array that can be handle by STK++.
Enumerator | |
---|---|
dense_ | dense matrix/vector/array/expression |
sparse_ | sparse matrix/vector/array/expression |
Definition at line 68 of file STK_Arrays_Util.h.
structures of Arrays that can be handled by STK++
Definition at line 77 of file STK_Arrays_Util.h.
convenience function for differencing two arrays
Definition at line 561 of file STK_Array2D_Functors.h.
Real STK::dist | ( | ExprBase< Container1D1 > const & | x, |
ExprBase< Container1D2 > const & | y | ||
) |
Compute the distance between two vectors.
Compute the Euclidian distance between x and y without overflow.
The common range of the vectors is used. The value outside the range are thus interpreted as equal.
[in] | x | first vector |
[in] | y | second vector |
Definition at line 692 of file STK_Array2D_Functors.h.
Referenced by STK::LocalVariance< Array >::minimalDistance(), STK::LocalVariance< Array >::prim(), and STK::Law::stringToUnivariateDistribution().
convenience function for the division element by element of two arrays
Definition at line 575 of file STK_Array2D_Functors.h.
Real STK::dot | ( | ExprBase< Container1D1 > const & | x, |
ExprBase< Container1D2 > const & | y | ||
) |
Compute the dot product.
Dot product of the vector x and the vector y: d = <x, y>.
The common range of the vectors is used. The value outside the range are thus interpreted as zero.
[in] | x | first vector |
[in] | y | second vector |
Definition at line 633 of file STK_Array2D_Functors.h.
References STK::sum().
Referenced by STK::Svd< Array >::compU(), STK::Svd< Array >::compV(), STK::gramSchmidt(), STK::Arrays::MultOp< Lhs, Rhs >::operator()(), STK::Arrays::MultLeftTransposeOp< Lhs, Rhs >::operator()(), STK::Arrays::MultRightTransposeOp< Lhs, Rhs >::operator()(), and STK::ExprBase< Derived >::wsum().
Specialization for array with unknown size.
I | the range of the container |
Definition at line 78 of file STK_IArray1D.h.
|
inline |
I | range of the container |
Size_ | The size of the array. For fixed size return the range unmodified |
Definition at line 72 of file STK_IArray1D.h.
Referenced by STK::IArray1D< Derived >::allocate().
m | the size of the container |
Definition at line 60 of file STK_IArray1D.h.
Referenced by STK::IArray2D< Derived >::mallocCols(), and STK::IArray2D< Derived >::reallocCols().
convenience function for the multiplication of two matrices
Definition at line 582 of file STK_Array2D_Functors.h.
Referenced by STK::MultidimRegression< Array, Weight >::extrapolate(), STK::MultidimRegression< Array, Weight >::predictionStep(), STK::MultidimRegression< Array, Weight >::regressionStep(), STK::MultidimRegression< Array, Weight >::regressionStep(), and STK::CG< MultFunctor, ColVector, InitFunctor >::setMultFunctor().
Array2DSquare< typename Derived::Type > STK::multLeftTranspose | ( | ExprBase< Derived > const & | A | ) |
Array multiplication by its transpose.
Perform the matrix product
[in] | A | the matrix to multiply by itself |
Definition at line 766 of file STK_Array2D_Functors.h.
Arrays::MultLeftTransposeOp< Lhs, Rhs >::result_type STK::multLeftTranspose | ( | Lhs const & | lhs, |
Rhs const & | rhs | ||
) |
convenience function for the multiplication of two matrices
Definition at line 596 of file STK_Array2D_Functors.h.
Referenced by STK::MultidimRegression< Array, Weight >::regressionStep().
Array2DSquare< typename Derived::Type > STK::multRightTranspose | ( | ExprBase< Derived > const & | A | ) |
Array multiplication by its transpose.
Perform the matrix product
[in] | A | the matrix to multiply by itself |
Definition at line 793 of file STK_Array2D_Functors.h.
Arrays::MultRightTransposeOp< Lhs, Rhs >::result_type STK::multRightTranspose | ( | Lhs const & | lhs, |
Rhs const & | rhs | ||
) |
convenience function for the multiplication of two matrices
Definition at line 610 of file STK_Array2D_Functors.h.
ostream & STK::operator<< | ( | ostream & | s, |
const CAllocator< Type, SizeRows_, SizeCols_, Orient_ > & | V | ||
) |
output stream for CAllocator.
s | the output stream |
V | the CArray to write |
Definition at line 221 of file STK_CArray.h.
References STK::out2D().
ostream & STK::operator<< | ( | ostream & | s, |
const ITContainer1D< Type > & | V | ||
) |
overload of the << operator for all 1D containers.
s | the output stream |
V | the Array1D to write |
Definition at line 106 of file STK_Display.h.
References STK::out1D().
ostream & STK::operator<< | ( | ostream & | s, |
ITContainer< Array > const & | V | ||
) |
overload of the << operator for all Arrays and Expressions.
s | the output stream |
V | the Array/Expression to write |
Definition at line 97 of file STK_Display.h.
ostream & STK::out1D | ( | ostream & | os, |
ITContainer1D< Array > const & | V | ||
) |
Method for displaying any one dimensional Array.
The Array is exported in ReadWriteCsv and the the csv is written in the output stream.
os | the output stream |
V | the Array or Expression to write |
Definition at line 75 of file STK_Display.h.
References _T.
Referenced by STK::operator<<(), and STK::operator<<().
ostream & STK::out2D | ( | ostream & | os, |
ITContainer< Array > const & | V | ||
) |
Method for displaying any two dimensional Array or Expression.
The Array/Expression is exported in a ReadWriteCsv and the the csv is written in the output stream.
os | the output stream |
V | the Array or Expression to write |
Definition at line 52 of file STK_Display.h.
References _T.
Referenced by STK::operator<<().
convenience function for the product element by element of two arrays
Definition at line 568 of file STK_Array2D_Functors.h.
convert an Arrays::Structure to a String.
type | the type of Structure we want to convert |
Definition at line 206 of file STK_Arrays_Util.h.
References _T, STK::Arrays::array2D_, STK::Arrays::diagonal_, STK::Arrays::expression_, STK::Arrays::lower_symmetric_, STK::Arrays::lower_triangular_, STK::Arrays::number_, STK::Arrays::point_, STK::Arrays::square_, STK::Arrays::symmetric_, STK::Arrays::upper_symmetric_, STK::Arrays::upper_triangular_, and STK::Arrays::vector_.
Referenced by STK::ArrayBase< Derived >::assign().
convenience function for summing two arrays
Definition at line 554 of file STK_Array2D_Functors.h.
Referenced by STK::Funct::betaRatio_sr(), STK::LocalVariance< Array >::computeCovarianceMatrices(), STK::LocalVariance< Array >::computeCovarianceMatrices(), STK::Law::Categorical::computeCumProb(), STK::IMixtureStatModel::computeICL(), STK::IMultiStatModel< Derived >::computeLnLikelihood(), STK::IUnivStatModel< ColVector, WColVector, UnivariateLaw >::computeLnLikelihood(), STK::IMixtureStatModel::computeLnLikelihood(), STK::JointBernoulliModel< Array, WColVector >::computeLnLikelihood(), STK::JointGammaModel< Array, WColVector >::computeLnLikelihood(), STK::JointGaussianModel< Array, WColVector >::computeLnLikelihood(), STK::ModelBernoulli_pj< Data_, WColVector_ >::computeLnLikelihood(), STK::ModelDiagGaussian_muj_sj< Data_, WColVector_ >::computeLnLikelihood(), STK::ModelGamma_aj_bj< Data_, WColVector_ >::computeLnLikelihood(), STK::Categorical_pjk< Array >::computeNbFreeParameters(), STK::HDMatrixGaussianModel< IdRow_, IdCol_, Array_ >::computeNbFreeParameters(), STK::IMixtureStatModel::computeNbFreeParameters(), STK::IMixtureStatModel::computeNbMissingValues(), STK::BernoulliModel< Array, WColVector >::computeParameters(), STK::JointBernoulliModel< Array, WColVector >::computeParameters(), STK::ModelBernoulli_pj< Data_, WColVector_ >::computeParameters(), STK::BernoulliModel< Array, WColVector >::computeParameters(), STK::JointBernoulliModel< Array, WColVector >::computeParameters(), STK::ModelBernoulli_pj< Data_, WColVector_ >::computeParameters(), STK::Funct::dev0(), STK::SymEigen< SquareArray >::diagonalize(), STK::dot(), STK::ExprBase< Derived >::dot(), STK::dotHouse(), STK::IMixtureComposer::eStep(), STK::MixtureSemiLearner::eStep(), STK::IMixtureComposer::eStep(), STK::Funct::expm1(), STK::Funct::g0(), STK::gaussianLnLikelihood(), STK::PoissonBase< Derived >::impute(), STK::DiagGaussianBase< Derived >::impute(), STK::GammaBase< Derived >::impute(), STK::HDGaussianBase< Derived >::impute(), STK::PoissonBase< Derived >::impute(), STK::hidden::InvertLowerTriangularImpl< Matrix, Size_ >::invertLowerTriangularXX(), STK::hidden::InvertUpperTriangularImpl< Matrix, Size_ >::invertUpperTriangularXX(), STK::Funct::lanczosSerie(), STK::CategoricalBase< Derived >::lnComponentProbability(), STK::DiagGaussianBase< Derived >::lnComponentProbability(), STK::GammaBase< Derived >::lnComponentProbability(), STK::HDGaussian_AjkBkQkD< Array >::lnComponentProbability(), STK::PoissonBase< Derived >::lnComponentProbability(), STK::MixtureComposer::lnComponentProbability(), STK::MixtureLearner::lnComponentProbability(), STK::MultiLaw::Normal< RowVector >::lnLikelihood(), STK::MultiLaw::JointProbability< RowVector, Law >::lpdf(), STK::IMixtureLearner::mapStep(), STK::hidden::MultPointArray< Lhs, Rhs, Result >::mult(), STK::hidden::MultImpl< Type >::PanelByVector(), STK::DiagGaussian_s< Array >::randomInit(), STK::Kmm_sk::randomInit(), STK::Categorical_pjk< Array >::run(), STK::Categorical_pk< Array >::run(), STK::DiagGaussian_s< Array >::run(), STK::Gamma_a_bk< Array >::run(), STK::Gamma_aj_bk< Array >::run(), STK::Poisson_ljlk< Array >::run(), STK::sumAlternateSerie(), STK::sumSerie(), STK::ITContainer< Derived, Arrays::square_ >::trace(), STK::ITContainer< Derived, Arrays::symmetric_ >::trace(), STK::ITContainer< Derived, Arrays::lower_symmetric_ >::trace(), STK::ITContainer< Derived, Arrays::upper_symmetric_ >::trace(), STK::hidden::MultImpl< Type >::vectorByVector(), and STK::weightedDot().
Real STK::weightedDist | ( | ExprBase< Container1D1 > const & | x, |
ExprBase< Container1D2 > const & | y, | ||
ExprBase< Container1D3 > const & | w | ||
) |
Compute the weighted distance between two vectors.
Compute the weighted Euclidian distance between x and y without overflow.
The common range of the vectors is used. The value outside the range are thus interpreted as equal.
[in] | x | first vector |
[in] | y | second vector |
[in] | w | the weight of the data |
Definition at line 729 of file STK_Array2D_Functors.h.
Real STK::weightedDot | ( | ExprBase< Container1D1 > const & | x, |
ExprBase< Container1D2 > const & | y, | ||
ExprBase< Container1D3 > const & | w | ||
) |
Compute the dot product.
Weighted dot product of the vector x and the vector y:
The common range of the vectors is used. The value outside the range are thus interpreted as zero.
[in] | x | first vector |
[in] | y | second vector |
[in] | w | the weights to apply |
Definition at line 657 of file STK_Array2D_Functors.h.
References STKRUNTIME_ERROR_2ARG, STK::sum(), and STK::weightedDot().
Referenced by STK::Arrays::MultOp< Lhs, Rhs >::operator()(), STK::Arrays::MultLeftTransposeOp< Lhs, Rhs >::operator()(), STK::Arrays::MultRightTransposeOp< Lhs, Rhs >::operator()(), and STK::weightedDot().
Array2DSquare< typename Derived::Type > STK::weightedMultLeftTranspose | ( | ExprBase< Derived > const & | A, |
ExprBase< Weights > const & | weights | ||
) |
Weighted matrix multiplication by its transpose.
Perform the matrix product
A | the matrix to multiply by itself |
weights | the weights of the product |
Definition at line 823 of file STK_Array2D_Functors.h.
Referenced by STK::MultidimRegression< Array, Weight >::regressionStep().
Array2DSquare< typename Derived::Type > STK::weightedMultRightTranspose | ( | ExprBase< Derived > const & | A, |
ExprBase< Weights > const & | weights | ||
) |
weighted Array multiplication by its transpose
Perform the matrix product
A | the matrix to multiply by itself |
weights | the weights of the product |
Definition at line 853 of file STK_Array2D_Functors.h.
Arrays::MultOp< Lhs, Rhs >::result_type STK::wmult | ( | Lhs const & | lhs, |
Rhs const & | rhs, | ||
Weights const & | weights | ||
) |
convenience function for the multiplication of two matrices
Definition at line 589 of file STK_Array2D_Functors.h.
Arrays::MultLeftTransposeOp< Lhs, Rhs >::result_type STK::wmultLeftTranspose | ( | Lhs const & | lhs, |
Rhs const & | rhs, | ||
Weights const & | weights | ||
) |
convenience function for the multiplication of two matrices
Definition at line 603 of file STK_Array2D_Functors.h.
Referenced by STK::MultidimRegression< Array, Weight >::regressionStep().
Arrays::MultRightTransposeOp< Lhs, Rhs >::result_type STK::wmultRightTranspose | ( | Lhs const & | lhs, |
Rhs const & | rhs, | ||
Weights const & | weights | ||
) |
convenience function for the multiplication of two matrices
Definition at line 617 of file STK_Array2D_Functors.h.