ML 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 which holds the data buffer. More... | |
class | ml::FloatingPointVector< T, size, DataContainer > |
Template class for vector arithmetic with floating point data types. More... | |
Namespaces | |
namespace | ml |
Main documentation file for ML users and developers. | |
namespace | std |
STL namespace. | |
Typedefs | |
typedef double(* | ML_LA_FROM_DOUBLE_TO_DOUBLE) (double) |
Template base class for floating point vectors. | |
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 " "s. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
template<class T , size_t size, class DataContainer > | |
bool | ml::operator! (const FloatingPointVector< T, size, DataContainer > &a) |
Returns whether all components are 0. | |
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. | |
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. | |
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... | |
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. | |
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). | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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]. | |
template<class T , size_t size, class DataContainer > | |
T | ml::compMul (const FloatingPointVector< T, size, DataContainer > &vec) |
Returns the product of all components. | |
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.