MyraMath
Classes
generators.h File Reference

Generators for basic Expression's (constant, random, linspace, etc). More...

#include <myramath/MYRAMATH_EXPORT.h>
#include <myramath/utility/Number.h>
Include dependency graph for generators.h:

Go to the source code of this file.

Classes

class  myra::Expression< Arity, Number >
 Given an index (i,j,etc), returns a value. More...
 

Functions

Expression< 1, NumberS > myra::make_ConstantExpression (int I, NumberS c)
 An arity-1 Expression of size I, that always returns a constant value c.
 
Expression< 1, NumberD > myra::make_ConstantExpression (int I, NumberD c)
 An arity-1 Expression of size I, that always returns a constant value c.
 
Expression< 1, NumberC > myra::make_ConstantExpression (int I, NumberC c)
 An arity-1 Expression of size I, that always returns a constant value c.
 
Expression< 1, NumberZ > myra::make_ConstantExpression (int I, NumberZ c)
 An arity-1 Expression of size I, that always returns a constant value c.
 
Expression< 2, NumberS > myra::make_ConstantExpression (int I, int J, NumberS c)
 An arity-2 Expression of size IxJ, that always returns a constant value c.
 
Expression< 2, NumberD > myra::make_ConstantExpression (int I, int J, NumberD c)
 An arity-2 Expression of size IxJ, that always returns a constant value c.
 
Expression< 2, NumberC > myra::make_ConstantExpression (int I, int J, NumberC c)
 An arity-2 Expression of size IxJ, that always returns a constant value c.
 
Expression< 2, NumberZ > myra::make_ConstantExpression (int I, int J, NumberZ c)
 An arity-2 Expression of size IxJ, that always returns a constant value c.
 
template<class Number >
Expression< 1, Number > myra::make_RandomExpression (int I)
 An arity-1 Expression of size I, that always returns a random value.
 
template<>
Expression< 1, NumberS > myra::make_RandomExpression (int I)
 An arity-1 Expression of size I, that always returns a random value.
 
template<>
Expression< 1, NumberD > myra::make_RandomExpression (int I)
 An arity-1 Expression of size I, that always returns a random value.
 
template<>
Expression< 1, NumberC > myra::make_RandomExpression (int I)
 An arity-1 Expression of size I, that always returns a random value.
 
template<>
Expression< 1, NumberZ > myra::make_RandomExpression (int I)
 An arity-1 Expression of size I, that always returns a random value.
 
template<class Number >
Expression< 2, Number > myra::make_RandomExpression (int I, int J)
 An arity-2 Expression of size IxJ, that always returns a random value.
 
template<>
Expression< 2, NumberS > myra::make_RandomExpression (int I, int J)
 An arity-2 Expression of size IxJ, that always returns a random value.
 
template<>
Expression< 2, NumberD > myra::make_RandomExpression (int I, int J)
 An arity-2 Expression of size IxJ, that always returns a random value.
 
template<>
Expression< 2, NumberC > myra::make_RandomExpression (int I, int J)
 An arity-2 Expression of size IxJ, that always returns a random value.
 
template<>
Expression< 2, NumberZ > myra::make_RandomExpression (int I, int J)
 An arity-2 Expression of size IxJ, that always returns a random value.
 
template<class Number >
Expression< 2, Number > myra::make_IdentityExpression (int N)
 An arity-2 Expression of size NxN, that returns i==j ? 1 : 0.
 
template<>
Expression< 2, NumberS > myra::make_IdentityExpression (int N)
 An arity-2 Expression of size NxN, that returns i==j ? 1 : 0.
 
template<>
Expression< 2, NumberD > myra::make_IdentityExpression (int N)
 An arity-2 Expression of size NxN, that returns i==j ? 1 : 0.
 
template<>
Expression< 2, NumberC > myra::make_IdentityExpression (int N)
 An arity-2 Expression of size NxN, that returns i==j ? 1 : 0.
 
template<>
Expression< 2, NumberZ > myra::make_IdentityExpression (int N)
 An arity-2 Expression of size NxN, that returns i==j ? 1 : 0.
 
Expression< 1, NumberS > myra::make_LinspaceExpression (NumberS x0, NumberS x1, int N)
 An arity-1 Expression, evaluates to N Number's linearly spaced between (x0,x1).
 
Expression< 1, NumberD > myra::make_LinspaceExpression (NumberD x0, NumberD x1, int N)
 An arity-1 Expression, evaluates to N Number's linearly spaced between (x0,x1).
 
Expression< 1, NumberC > myra::make_LinspaceExpression (NumberC x0, NumberC x1, int N)
 An arity-1 Expression, evaluates to N Number's linearly spaced between (x0,x1).
 
Expression< 1, NumberZ > myra::make_LinspaceExpression (NumberZ x0, NumberZ x1, int N)
 An arity-1 Expression, evaluates to N Number's linearly spaced between (x0,x1).
 
Expression< 1, NumberS > myra::make_LogspaceExpression (NumberS x0, NumberS x1, int N)
 An arity-1 Expression, evaluates to N Number's logarithmically spaced between (10^x0,10^x1).
 
Expression< 1, NumberD > myra::make_LogspaceExpression (NumberD x0, NumberD x1, int N)
 An arity-1 Expression, evaluates to N Number's logarithmically spaced between (10^x0,10^x1).
 

Detailed Description

Generators for basic Expression's (constant, random, linspace, etc).