Package edu.wpi.first.math
Class MatBuilder<R extends Num,C extends Num>
- java.lang.Object
-
- edu.wpi.first.math.MatBuilder<R,C>
-
- Type Parameters:
R
- The number of rows of the desired matrix.C
- The number of columns of the desired matrix.
- Direct Known Subclasses:
VecBuilder
public class MatBuilder<R extends Num,C extends Num> extends Object
A class for constructing arbitrary RxC matrices.
-
-
Constructor Summary
Constructors Constructor Description MatBuilder(Nat<R> rows, Nat<C> cols)
Creates a newMatBuilder
with the given dimensions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Matrix<R,C>
fill(double... data)
Fills the matrix with the given data, encoded in row major form.
-
-
-
Constructor Detail
-
MatBuilder
public MatBuilder(Nat<R> rows, Nat<C> cols)
Creates a newMatBuilder
with the given dimensions.- Parameters:
rows
- The number of rows of the matrix.cols
- The number of columns of the matrix.
-
-