This commit is contained in:
Gilles Sadowski 2019-12-02 08:21:50 +01:00
parent 735dbc7934
commit a9c64a5002
2 changed files with 7 additions and 2 deletions

View File

@ -63,9 +63,11 @@ public class FieldDenseMatrix<T>
/**
* Factory method.
*
* @param <T> Type of the field elements.
* @param f Field.
* @param r Number of rows.
* @param c Number of columns.
* @return a new instance.
* @throws IllegalArgumentException if {@code r <= 0} or {@code c <= 0}.
*/
public static <T> FieldDenseMatrix<T> create(Field<T> f,
@ -77,11 +79,12 @@ public class FieldDenseMatrix<T>
/**
* Factory method.
*
* @param <T> Type of the field elements.
* @param f Field.
* @param r Number of rows.
* @param c Number of columns.
* @throws IllegalArgumentException if {@code r <= 0} or {@code c <= 0}.
* @return a matrix with elements zet to {@link Field#zero() zero}.
* @throws IllegalArgumentException if {@code r <= 0} or {@code c <= 0}.
*/
public static <T> FieldDenseMatrix<T> zero(Field<T> f,
int r,
@ -92,10 +95,11 @@ public class FieldDenseMatrix<T>
/**
* Factory method.
*
* @param <T> Type of the field elements.
* @param f Field.
* @param n Dimension of the matrix.
* @return the identity matrix.
* @throws IllegalArgumentException if {@code n <= 0}.
* @return the identity matrix.
*/
public static <T> FieldDenseMatrix<T> identity(Field<T> f,
int n) {

View File

@ -142,6 +142,7 @@ public class FieldLUDecomposition<T> {
/**
* Factory method.
*
* @param <T> Type of the field elements.
* @param m Matrix to decompose.
* @return a new instance.
*/