24 package org.lightjason.agentspeak.action.builtin.math.blas.matrix;
26 import cern.colt.matrix.tdouble.DoubleFactory2D;
27 import cern.colt.matrix.tdouble.DoubleMatrix2D;
37 import javax.annotation.Nonnegative;
38 import javax.annotation.Nonnull;
39 import java.util.List;
72 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return )
78 .map(
ITerm::<String>raw )
84 .map(
ITerm::<Number>raw )
85 .map( Number::intValue )
88 .forEach( p_return::add );
102 private static DoubleMatrix2D
generate(
final int p_size, @Nonnull
final EType p_type )
106 case DENSE:
return DoubleFactory2D.dense.identity( p_size );
107 default:
return DoubleFactory2D.sparse.identity( p_size );
static DoubleMatrix2D generate(final int p_size, @Nonnull final EType p_type)
generates the identitiy matrix
static final long serialVersionUID
serial id
static< N > IFuzzyValue< N > from( @Nonnull final N p_value)
factory
common structure for execution definition
execution context with local data
static Stream< ITerm > flatten( @Nonnull final Collection<? extends ITerm > p_terms)
flat term-in-term collection into a straight term list
final IFuzzyValue< Boolean > execute(final boolean p_parallel, @Nonnull final IContext p_context, @Nonnull final List< ITerm > p_argument, @Nonnull final List< ITerm > p_return)
defines a plan-body operation
static< T > boolean rawvalueAssignableTo( @Nonnull final T p_value, @Nonnull final Class<?>... p_class)
checks a term value for assignable class
result for an immutable fuzzy value
static EType from(final String p_name)
additional factory
final int minimalArgumentNumber()
minimum number of arguments
static< N > CRawTerm< N > from(final N p_value)
factory for a raw term
blas algebra operations e.g.
returns the identity matrix.
term structure for simple datatypes