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;
50 protected final BitVector
extract( @Nonnull
final BitMatrix p_matrix,
final int p_index )
52 final BitVector l_result =
new BitVector( p_matrix.rows() );
53 IntStream.range( 0, p_matrix.rows() )
55 .forEach( i -> l_result.putQuick( i, p_matrix.getQuick( p_index, i ) ) );
static final long serialVersionUID
serial id
returns a single column of a bit matrix.
final BitVector extract( @Nonnull final BitMatrix p_matrix, final int p_index)
abstract class for extracting row / columns form a bit matrix