24 package org.lightjason.agentspeak.action.builtin.math.blas;
26 import cern.colt.matrix.tdouble.DoubleMatrix1D;
27 import cern.colt.matrix.tdouble.DoubleMatrix2D;
28 import com.codepoetics.protonpack.StreamUtils;
36 import javax.annotation.Nonnegative;
37 import javax.annotation.Nonnull;
38 import java.util.List;
39 import java.util.function.BiFunction;
75 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return )
82 ).parallel().allMatch( i ->
88 i.get( 0 ), i.get( 1 ),
96 i.get( 0 ), i.get( 1 ),
104 i.get( 0 ), i.get( 1 ),
112 i.get( 0 ), i.get( 1 ),
132 private static <U, V>
boolean apply(
final ITerm p_left,
final ITerm p_right,
final BiFunction<U, V, ?> p_function,
final List<ITerm> p_return )
134 p_return.add(
CRawTerm.
from( p_function.apply( p_left.<U>raw(), p_right.<V>raw() ) ) );
final int minimalArgumentNumber()
minimum number of arguments
static< N > IFuzzyValue< N > from( @Nonnull final N p_value)
factory
common structure for execution definition
execution context with local data
static final DenseDoubleAlgebra DENSEALGEBRA
dense algebra
static Stream< ITerm > flatten( @Nonnull final Collection<? extends ITerm > p_terms)
flat term-in-term collection into a straight term list
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
defines matrix- / vector-products.
static< N > CRawTerm< N > from(final N p_value)
factory for a raw term
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 final long serialVersionUID
serial id
blas algebra operations e.g.
static< U, V > boolean apply(final ITerm p_left, final ITerm p_right, final BiFunction< U, V, ?> p_function, final List< ITerm > p_return)
apply method
term structure for simple datatypes