Chemical Data Processing Library C++ API - Version 1.4.0
Namespaces | Functions
MatrixAssignment.hpp File Reference

Implementation of matrix assignment routines. More...

#include <utility>
#include "CDPL/Math/Check.hpp"
#include "CDPL/Math/CommonType.hpp"
#include "CDPL/Base/Exceptions.hpp"

Go to the source code of this file.

Namespaces

 CDPL
 The namespace of the Chemical Data Processing Library.
 
 CDPL::Math
 Contains classes and functions related to mathematics.
 

Functions

template<template< typename T1, typename T2 > class F, typename M , typename E >
void CDPL::Math::matrixAssignMatrix (M &m, const MatrixExpression< E > &e)
 Applies the element-wise functor F to every (matrix element, source element) pair, i.e. F::apply(m(i,j), e()(i,j)). More...
 
template<template< typename T1, typename T2 > class F, typename M , typename T >
void CDPL::Math::matrixAssignScalar (M &m, const T &t)
 Applies the element-wise functor F to every (matrix element, scalar) pair, i.e. F::apply(m(i,j), t). More...
 
template<typename M , typename E >
void CDPL::Math::matrixSwap (M &m, MatrixExpression< E > &e)
 Swaps the elements of two equally sized matrix expressions element by element. More...
 

Detailed Description

Implementation of matrix assignment routines.