MeVisLab Toolbox Reference
|
#include "mlLinearAlgebraSystem.h"
#include <mlTypeDefs.h>
#include <mlTypeDefTraits.h>
#include <iostream>
Go to the source code of this file.
Classes | |
class | ml::FloatingPointVectorDataContainerBase< DT, size > |
Base class of the FloatingPointVector class that holds the data buffer. More... | |
class | ml::FloatingPointVector< T, size, DataContainer > |
Template class for vector arithmetic with floating point datatypes. More... | |
Namespaces | |
ml | |
Main documentation file for ML users and developers. | |
Typedefs | |
typedef double(* | ML_LA_FROM_DOUBLE_TO_DOUBLE) (double) |
Template base class for floating point vectors. More... | |
Functions | |
template<class T , size_t size, class DataContainer > | |
ostream & | std::operator<< (ostream &os, const ml::FloatingPointVector< T, size, DataContainer > &v) |
Prints vector to std::ostream. All components are followed by " ". More... | |
template<class T , size_t size, class DataContainer > | |
istream & | std::operator>> (istream &is, ml::FloatingPointVector< T, size, DataContainer > &v) |
Reads a vector from std::istream. More... | |
Standalone functions for FloatingPointVector. | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > & | ml::operator+= (FloatingPointVector< T, size, DataContainer > &op1, const FloatingPointVector< T, size, DataContainer > &buffer) |
Arithmetic assignment: Component-wise addition. More... | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > & | ml::operator-= (FloatingPointVector< T, size, DataContainer > &op1, const FloatingPointVector< T, size, DataContainer > &buffer) |
Arithmetic assignment: Component-wise subtraction of buffer from *this. More... | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > & | ml::operator*= (FloatingPointVector< T, size, DataContainer > &op1, MLdouble value) |
Arithmetic assignment: Component-wise multiplication *this with specialized MLdouble scalar value. More... | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > & | ml::operator*= (FloatingPointVector< T, size, DataContainer > &op1, const FloatingPointVector< T, size, DataContainer > &op2) |
Arithmetic assignment: Component-wise multiplication *this with a vector of the same size. More... | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > & | ml::operator/= (FloatingPointVector< T, size, DataContainer > &op1, MLdouble value) |
Arithmetic assignment: Component-wise division of *this by scalar value. More... | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > & | ml::operator/= (FloatingPointVector< T, size, DataContainer > &op1, const FloatingPointVector< T, size, DataContainer > &op2) |
Arithmetic assignment: Component-wise division of *this by the values of a vector of the same size. More... | |
template<class T , size_t size, class DataContainer > | |
bool | ml::operator! (const FloatingPointVector< T, size, DataContainer > &a) |
Returns whether all components are 0. More... | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > | ml::operator+ (FloatingPointVector< T, size, DataContainer > lhs, const FloatingPointVector< T, size, DataContainer > &rhs) |
Return value is the component-wise addition of lhs and rhs . More... | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > | ml::operator- (FloatingPointVector< T, size, DataContainer > lhs, const FloatingPointVector< T, size, DataContainer > &rhs) |
Return value is the component-wise subtraction of rhs from lhs . More... | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > | ml::operator+ (const FloatingPointVector< T, size, DataContainer > &buffer) |
Unary plus, for completeness and for those who really want to use that. More... | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > | ml::operator- (const FloatingPointVector< T, size, DataContainer > &buffer) |
Unary minus, all components of the vector are multiplied with -1. More... | |
template<class T , size_t size, class DataContainer > | |
T | ml::operator* (const FloatingPointVector< T, size, DataContainer > &a, const FloatingPointVector< T, size, DataContainer > &b) |
Dot product, returns a.dot(b). More... | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > | ml::operator* (FloatingPointVector< T, size, DataContainer > lhs, MLdouble rhs) |
Component-wise multiplication of lhs with rhs . More... | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > | ml::operator* (MLdouble lhs, FloatingPointVector< T, size, DataContainer > rhs) |
Component-wise multiplication of rhs with lhs . More... | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > | ml::operator/ (FloatingPointVector< T, size, DataContainer > lhs, MLdouble rhs) |
Component-wise division of lhs by specialized rhs of type MLdouble. More... | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > | ml::compMin (FloatingPointVector< T, size, DataContainer > buffer1, const FloatingPointVector< T, size, DataContainer > &buffer2) |
Component-wise minimum of buffer1 and buffer2 . More... | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > | ml::compMax (FloatingPointVector< T, size, DataContainer > buffer1, const FloatingPointVector< T, size, DataContainer > &buffer2) |
Component-wise maximum of buffer1 and buffer2 . More... | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > | ml::compAbs (FloatingPointVector< T, size, DataContainer > vec) |
Returns a vector with all components from vec without negative sign. More... | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > | ml::compSqr (FloatingPointVector< T, size, DataContainer > vec) |
Returns a vector with all components from vec squared. More... | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > | ml::compSqrt (FloatingPointVector< T, size, DataContainer > vec) |
Returns a vector with all components from vec square-rooted. More... | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > | ml::compDiv (FloatingPointVector< T, size, DataContainer > vec, const FloatingPointVector< T, size, DataContainer > &d) |
Component-wise division of vec / d . More... | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > | ml::clampMin (FloatingPointVector< T, size, DataContainer > vec, const FloatingPointVector< T, size, DataContainer > &m) |
Returns a new vector with all components from vec clamped to minimum m . More... | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > | ml::clampMax (FloatingPointVector< T, size, DataContainer > vec, const FloatingPointVector< T, size, DataContainer > &m) |
Returns a new vector with all components from vec clamped to maximum m . More... | |
template<class T , size_t size, class DataContainer > | |
FloatingPointVector< T, size, DataContainer > | ml::clamp (FloatingPointVector< T, size, DataContainer > vec, const FloatingPointVector< T, size, DataContainer > &lower, const FloatingPointVector< T, size, DataContainer > &upper) |
Returns a new vector with all components from vec clamped to range [lower, upper]. More... | |
template<class T , size_t size, class DataContainer > | |
T | ml::compMul (const FloatingPointVector< T, size, DataContainer > &vec) |
Returns the product of all components. More... | |
typedef double(* ML_LA_FROM_DOUBLE_TO_DOUBLE) (double) |
Template base class for floating point vectors.
Function type used to apply a user function to vectors components.
Definition at line 30 of file mlFloatingPointVector.h.
|
inline |
Prints vector to std::ostream. All components are followed by " ".
Definition at line 554 of file mlFloatingPointVector.h.
References std::operator<<().
|
inline |
Reads a vector from std::istream.
Definition at line 563 of file mlFloatingPointVector.h.
References ml::is().