24 package org.lightjason.agentspeak.action.builtin.math.bit.matrix;
26 import cern.colt.matrix.tbit.BitMatrix;
27 import cern.colt.matrix.tbit.BitVector;
29 import javax.annotation.Nonnull;
30 import java.util.stream.IntStream;
51 protected final BitVector
extract( @Nonnull
final BitMatrix p_matrix,
final int p_index )
53 final BitVector l_result =
new BitVector( p_matrix.columns() );
54 IntStream.range( 0, p_matrix.columns() )
56 .forEach( i -> l_result.putQuick( i, p_matrix.getQuick( i, p_index ) ) );
final BitVector extract( @Nonnull final BitMatrix p_matrix, final int p_index)
returns a single row of a bit matrix.
static final long serialVersionUID
serial id
abstract class for extracting row / columns form a bit matrix