iRoCS Toolbox  1.1.0
Functions
blitz Namespace Reference

Functions

template<int NRows, int NColumns>
bool all (blitz::TinyMatrix< bool, NRows, NColumns > const &matrix)
 all() reduction for boolean blitz::TinyMatrix. More...
 
template<int NRows, int NColumns>
bool any (blitz::TinyMatrix< bool, NRows, NColumns > const &matrix)
 any() reduction for boolean blitz::TinyMatrix. More...
 
template<typename DataT , int NRows, int NColumns>
TinyMatrix< bool, NRows, NColumns > operator!= (TinyMatrix< DataT, NRows, NColumns > const &lhs, TinyMatrix< DataT, NRows, NColumns > const &rhs)
 Elementwise comparison for inequality of two blitz::TinyMatrices. More...
 
template<typename DataT , int Dim1, int Dim2>
TinyVector< DataT, Dim2 > operator* (TinyMatrix< DataT, Dim2, Dim1 > const &m, TinyVector< DataT, Dim1 > const &v)
 Product of a blitz::TinyMatrix and a blitz::TinyVector. More...
 
template<typename DataT , int Dim1, int Dim2>
TinyVector< DataT, Dim1 > operator* (TinyVector< DataT, Dim2 > const &v, TinyMatrix< DataT, Dim2, Dim1 > const &m)
 Product of a blitz::TinyVector and a blitz::TinyMatrix. More...
 
template<typename DataT , int NRows, int NColumns>
TinyMatrix< DataT, NRows, NColumns > operator* (DataT const &alpha, TinyMatrix< DataT, NRows, NColumns > const &m)
 Product of a scalar and a blitz::TinyMatrix. More...
 
template<typename DataT , int NRows, int NColumns>
TinyMatrix< DataT, NRows, NColumns > operator* (TinyMatrix< DataT, NRows, NColumns > const &m, DataT const &alpha)
 Product of a scalar and a blitz::TinyMatrix. More...
 
template<typename DataT , int NRows, int NColumns>
TinyMatrix< DataT, NRows, NColumns > operator+ (TinyMatrix< DataT, NRows, NColumns > const &lhs, TinyMatrix< DataT, NRows, NColumns > const &rhs)
 Addition of a blitz::TinyMatrix to another blitz::TinyMatrix. More...
 
template<typename DataT , int NRows, int NColumns>
TinyMatrix< DataT, NRows, NColumns > operator- (TinyMatrix< DataT, NRows, NColumns > const &m)
 Negation of a blitz::TinyMatrix. More...
 
template<typename DataT , int NRows, int NColumns>
TinyMatrix< DataT, NRows, NColumns > operator- (TinyMatrix< DataT, NRows, NColumns > const &lhs, TinyMatrix< DataT, NRows, NColumns > const &rhs)
 Subtraction of a blitz::TinyMatrix from another blitz::TinyMatrix. More...
 
template<typename DataT , int NRows, int NColumns>
TinyMatrix< DataT, NRows, NColumns > operator/ (TinyMatrix< DataT, NRows, NColumns > const &m, DataT const &alpha)
 Division of a blitz::TinyMatrix by a scalar. More...
 
template<typename DataT , int NRows, int NColumns>
TinyMatrix< bool, NRows, NColumns > operator< (TinyMatrix< DataT, NRows, NColumns > const &lhs, TinyMatrix< DataT, NRows, NColumns > const &rhs)
 Elementwise comparison of two blitz::TinyMatrices using the less than operator. More...
 
template<typename DataT , int NRows, int NColumns>
TinyMatrix< bool, NRows, NColumns > operator<= (TinyMatrix< DataT, NRows, NColumns > const &lhs, TinyMatrix< DataT, NRows, NColumns > const &rhs)
 Elementwise comparison of two blitz::TinyMatrices using the less than or equals operator. More...
 
template<typename DataT , int NRows, int NColumns>
TinyMatrix< bool, NRows, NColumns > operator== (TinyMatrix< DataT, NRows, NColumns > const &lhs, TinyMatrix< DataT, NRows, NColumns > const &rhs)
 Elementwise comparison for equality of two blitz::TinyMatrices. More...
 
template<typename DataT , int NRows, int NColumns>
TinyMatrix< bool, NRows, NColumns > operator> (TinyMatrix< DataT, NRows, NColumns > const &lhs, TinyMatrix< DataT, NRows, NColumns > const &rhs)
 Elementwise comparison of two blitz::TinyMatrices using the greater than operator. More...
 
template<typename DataT , int NRows, int NColumns>
TinyMatrix< bool, NRows, NColumns > operator>= (TinyMatrix< DataT, NRows, NColumns > const &lhs, TinyMatrix< DataT, NRows, NColumns > const &rhs)
 Elementwise comparison of two blitz::TinyMatrices using the greater than or equals operator. More...
 

Function Documentation

◆ operator-() [1/2]

template<typename DataT , int NRows, int NColumns>
TinyMatrix<DataT,NRows,NColumns> blitz::operator- ( TinyMatrix< DataT, NRows, NColumns > const &  m)

Negation of a blitz::TinyMatrix.

Parameters
mThe matrix
Returns
The matrix with all values sign-changed

Definition at line 51 of file TinyMatrixOperators.hh.

◆ operator*() [1/4]

template<typename DataT , int Dim1, int Dim2>
TinyVector<DataT,Dim2> blitz::operator* ( TinyMatrix< DataT, Dim2, Dim1 > const &  m,
TinyVector< DataT, Dim1 > const &  v 
)

Product of a blitz::TinyMatrix and a blitz::TinyVector.

Parameters
mThe matrix
vThe vector to multiply to matrix m
Returns
The resulting vector of the matrix vector multiplication

Definition at line 70 of file TinyMatrixOperators.hh.

◆ operator*() [2/4]

template<typename DataT , int Dim1, int Dim2>
TinyVector<DataT,Dim1> blitz::operator* ( TinyVector< DataT, Dim2 > const &  v,
TinyMatrix< DataT, Dim2, Dim1 > const &  m 
)

Product of a blitz::TinyVector and a blitz::TinyMatrix.

The vector is interpreted as row vector and left-multiplied to the matrix.

Parameters
vThe vector
mThe matrix
Returns
The resulting vector of the vector matrix multiplication

Definition at line 92 of file TinyMatrixOperators.hh.

◆ operator*() [3/4]

template<typename DataT , int NRows, int NColumns>
TinyMatrix<DataT,NRows,NColumns> blitz::operator* ( DataT const &  alpha,
TinyMatrix< DataT, NRows, NColumns > const &  m 
)

Product of a scalar and a blitz::TinyMatrix.

Parameters
alphaThe scalar to multiply to the matrix
mThe matrix
Returns
The product of the scalar alpha with the matrix m

Definition at line 113 of file TinyMatrixOperators.hh.

◆ operator*() [4/4]

template<typename DataT , int NRows, int NColumns>
TinyMatrix<DataT,NRows,NColumns> blitz::operator* ( TinyMatrix< DataT, NRows, NColumns > const &  m,
DataT const &  alpha 
)

Product of a scalar and a blitz::TinyMatrix.

Parameters
mThe matrix
alphaThe scalar to multiply to the matrix
Returns
The product of the scalar alpha with the matrix m

Definition at line 135 of file TinyMatrixOperators.hh.

◆ operator/()

template<typename DataT , int NRows, int NColumns>
TinyMatrix<DataT,NRows,NColumns> blitz::operator/ ( TinyMatrix< DataT, NRows, NColumns > const &  m,
DataT const &  alpha 
)

Division of a blitz::TinyMatrix by a scalar.

Parameters
mThe matrix
alphaThe scalar divident
Returns
The result of the scalar division of m by alpha

Definition at line 157 of file TinyMatrixOperators.hh.

◆ operator-() [2/2]

template<typename DataT , int NRows, int NColumns>
TinyMatrix<DataT,NRows,NColumns> blitz::operator- ( TinyMatrix< DataT, NRows, NColumns > const &  lhs,
TinyMatrix< DataT, NRows, NColumns > const &  rhs 
)

Subtraction of a blitz::TinyMatrix from another blitz::TinyMatrix.

Parameters
lhsThe left-hand-side matrix
rhsThe right-hand-side matrix
Returns
The difference lhs - rhs

Definition at line 179 of file TinyMatrixOperators.hh.

◆ operator+()

template<typename DataT , int NRows, int NColumns>
TinyMatrix<DataT,NRows,NColumns> blitz::operator+ ( TinyMatrix< DataT, NRows, NColumns > const &  lhs,
TinyMatrix< DataT, NRows, NColumns > const &  rhs 
)

Addition of a blitz::TinyMatrix to another blitz::TinyMatrix.

Parameters
lhsThe left-hand-side matrix
rhsThe right-hand-side matrix
Returns
The sum lhs + rhs

Definition at line 202 of file TinyMatrixOperators.hh.

◆ operator==()

template<typename DataT , int NRows, int NColumns>
TinyMatrix<bool,NRows,NColumns> blitz::operator== ( TinyMatrix< DataT, NRows, NColumns > const &  lhs,
TinyMatrix< DataT, NRows, NColumns > const &  rhs 
)

Elementwise comparison for equality of two blitz::TinyMatrices.

Parameters
lhsThe left-hand-side matrix
rhsThe right-hand-side matrix
Returns
The boolean lhs == rhs

Definition at line 225 of file TinyMatrixOperators.hh.

◆ operator!=()

template<typename DataT , int NRows, int NColumns>
TinyMatrix<bool,NRows,NColumns> blitz::operator!= ( TinyMatrix< DataT, NRows, NColumns > const &  lhs,
TinyMatrix< DataT, NRows, NColumns > const &  rhs 
)

Elementwise comparison for inequality of two blitz::TinyMatrices.

Parameters
lhsThe left-hand-side matrix
rhsThe right-hand-side matrix
Returns
The boolean lhs != rhs

Definition at line 246 of file TinyMatrixOperators.hh.

◆ operator<()

template<typename DataT , int NRows, int NColumns>
TinyMatrix<bool,NRows,NColumns> blitz::operator< ( TinyMatrix< DataT, NRows, NColumns > const &  lhs,
TinyMatrix< DataT, NRows, NColumns > const &  rhs 
)

Elementwise comparison of two blitz::TinyMatrices using the less than operator.

Parameters
lhsThe left-hand-side matrix
rhsThe right-hand-side matrix
Returns
The boolean lhs < rhs

Definition at line 268 of file TinyMatrixOperators.hh.

◆ operator<=()

template<typename DataT , int NRows, int NColumns>
TinyMatrix<bool,NRows,NColumns> blitz::operator<= ( TinyMatrix< DataT, NRows, NColumns > const &  lhs,
TinyMatrix< DataT, NRows, NColumns > const &  rhs 
)

Elementwise comparison of two blitz::TinyMatrices using the less than or equals operator.

Parameters
lhsThe left-hand-side matrix
rhsThe right-hand-side matrix
Returns
The boolean lhs <= rhs

Definition at line 290 of file TinyMatrixOperators.hh.

◆ operator>()

template<typename DataT , int NRows, int NColumns>
TinyMatrix<bool,NRows,NColumns> blitz::operator> ( TinyMatrix< DataT, NRows, NColumns > const &  lhs,
TinyMatrix< DataT, NRows, NColumns > const &  rhs 
)

Elementwise comparison of two blitz::TinyMatrices using the greater than operator.

Parameters
lhsThe left-hand-side matrix
rhsThe right-hand-side matrix
Returns
The boolean lhs > rhs

Definition at line 312 of file TinyMatrixOperators.hh.

◆ operator>=()

template<typename DataT , int NRows, int NColumns>
TinyMatrix<bool,NRows,NColumns> blitz::operator>= ( TinyMatrix< DataT, NRows, NColumns > const &  lhs,
TinyMatrix< DataT, NRows, NColumns > const &  rhs 
)

Elementwise comparison of two blitz::TinyMatrices using the greater than or equals operator.

Parameters
lhsThe left-hand-side matrix
rhsThe right-hand-side matrix
Returns
The boolean lhs >= rhs

Definition at line 334 of file TinyMatrixOperators.hh.

◆ all()

template<int NRows, int NColumns>
bool blitz::all ( blitz::TinyMatrix< bool, NRows, NColumns > const &  matrix)

all() reduction for boolean blitz::TinyMatrix.

This function returns true, if all elements of the given matrix are true.

Parameters
matrixThe matrix to check
Returns
true if all elements of the given matrix are true, false otherwise

Definition at line 356 of file TinyMatrixOperators.hh.

Referenced by arrayToColorQImage(), arrayToGrayQImage(), BlitzDataExplorer::BlitzDataExplorer(), segmentation::collectSelectedClusterProfiles(), BlitzDataExplorer::getXYView(), BlitzDataExplorer::getXZView(), BlitzDataExplorer::getZYView(), segmentation::NormalPDF< T >::NormalPDF(), segmentation::ProfileSampler< T, Dim >::sample(), and BlitzDataExplorer::updateData().

◆ any()

template<int NRows, int NColumns>
bool blitz::any ( blitz::TinyMatrix< bool, NRows, NColumns > const &  matrix)

any() reduction for boolean blitz::TinyMatrix.

This function returns true, if any element of the given matrix is true.

Parameters
matrixThe matrix to check
Returns
true if any element of the given matrix is true, false otherwise

Definition at line 375 of file TinyMatrixOperators.hh.

Referenced by atb::STLFileWriter::drawEllipse(), atb::STLFileWriter::drawRotationObjectFromContour(), and segmentation::ProfileFilter< T, Dim >::operator()().