public class FloatDenseMatrix extends Object
| Constructor and Description | 
|---|
| FloatDenseMatrix(int size)Create a new matrix with the same number of rows and columns. | 
| FloatDenseMatrix(int numRows,
                int numColumns)Create a new matrix with the given number of rows and columns. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addRow(FloatDenseVector vec)Add the float vector as a row in the matrix. | 
| float | get(int i,
   int j)Get a specific entry of the matrix. | 
| int | getNumColumns()Get the number of the columns in the matrix. | 
| int | getNumRows()Get the number of rows in the matrix. | 
| FloatDenseVector | getRow(int i)Get a specific row of the matrix. | 
| void | initialize()Create a empty matrix with all values set to 0.0 | 
| void | set(int i,
   int j,
   float v)Set a specific entry of the matrix. | 
public FloatDenseMatrix(int size)
size - the number of rows and columnspublic FloatDenseMatrix(int numRows,
                        int numColumns)
numRows - the number of rowsnumColumns - the number of columnspublic void initialize()
public int getNumRows()
public int getNumColumns()
public float get(int i,
                 int j)
i - the rowj - the columnpublic void set(int i,
                int j,
                float v)
i - the rowj - the columnv - the value of the entrypublic FloatDenseVector getRow(int i)
i - the row numberpublic void addRow(FloatDenseVector vec)
vec - the vector to addCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.