Class documentation of Concepts

Loading...
Searching...
No Matches
arrayOp.hh File Reference
#include <stdarg.h>
#include <initializer_list>
#include "toolbox/array.hh"

Go to the source code of this file.

Namespaces

namespace  concepts
 

Macros

#define ArrayProduct_D   0
 

Functions

template<typename F >
std::product (const concepts::Array< F > &a)
 Returns the product of values in the array a.
 
template<typename F >
std::product (const concepts::Array< F > &a, uint j)
 Returns the product of values in the array a without index j.
 
template<typename F >
std::product (const concepts::Array< F > &a, uint j, uint k)
 
template<typename F >
concepts::Array< F > std::pow (const concepts::Array< F > &a, const F e)
 Returns the power of values in the array a with e.
 
template<typename F >
concepts::Array< F > std::abs (const concepts::Array< F > &a)
 Returns an array with the absolute values of array a.
 
template<typename F >
std::min (const concepts::Array< F > &a)
 Returns the minimal value in array a.
 
template<typename F >
std::max (const concepts::Array< F > &a)
 Returns the maximal value in array a.
 
template<class F >
Array< F > concepts::makeArray (std::initializer_list< F > list)
 
void concepts::chebychevPoints (concepts::Array< Real > &p)
 
template<class F , uint dim>
Array< F > concepts::componentArray (const Array< Point< F, dim > > &a, uint i)
 

Detailed Description

Operation to arrays

Definition in file arrayOp.hh.

Macro Definition Documentation

◆ ArrayProduct_D

#define ArrayProduct_D   0

Definition at line 15 of file arrayOp.hh.

Function Documentation

◆ abs()

template<typename F >
concepts::Array< F > std::abs ( const concepts::Array< F > &  a)

Returns an array with the absolute values of array a.

Definition at line 67 of file arrayOp.hh.

◆ max()

template<typename F >
F std::max ( const concepts::Array< F > &  a)

Returns the maximal value in array a.

Definition at line 91 of file arrayOp.hh.

◆ min()

template<typename F >
F std::min ( const concepts::Array< F > &  a)

Returns the minimal value in array a.

Examples
matfileTutorial.cc.

Definition at line 78 of file arrayOp.hh.

◆ pow()

template<typename F >
concepts::Array< F > std::pow ( const concepts::Array< F > &  a,
const F  e 
)

Returns the power of values in the array a with e.

Definition at line 56 of file arrayOp.hh.

◆ product() [1/3]

template<typename F >
F std::product ( const concepts::Array< F > &  a)

Returns the product of values in the array a.

Definition at line 23 of file arrayOp.hh.

◆ product() [2/3]

template<typename F >
F std::product ( const concepts::Array< F > &  a,
uint  j 
)

Returns the product of values in the array a without index j.

Definition at line 32 of file arrayOp.hh.

◆ product() [3/3]

template<typename F >
F std::product ( const concepts::Array< F > &  a,
uint  j,
uint  k 
)

Returns the product of values in the array a without indices j and k.

Definition at line 44 of file arrayOp.hh.