public class Matf extends Object
| Modifier and Type | Field and Description |
|---|---|
private float[] |
data |
private int |
nCol |
private int |
nRow |
| Constructor and Description |
|---|
Matf(int nRow,
int nCol) |
Matf(Matf arg) |
| Modifier and Type | Method and Description |
|---|---|
float |
get(int i,
int j)
Gets the (i,j)th element of this matrix, where i is the row
index and j is the column index
|
Matf |
mul(Matf b)
Returns this * b; creates new matrix
|
Vecf |
mul(Vecf v)
Returns this * v, assuming v is a column vector.
|
int |
nCol() |
int |
nRow() |
void |
set(int i,
int j,
float val)
Sets the (i,j)th element of this matrix, where i is the row
index and j is the column index
|
Mat2f |
toMat2f()
If this is a 2x2 matrix, returns it as a Mat2f.
|
Mat3f |
toMat3f()
If this is a 3x3 matrix, returns it as a Mat3f.
|
Mat4f |
toMat4f()
If this is a 4x4 matrix, returns it as a Mat4f.
|
Matf |
transpose()
Returns transpose of this matrix; creates new matrix
|
public Matf(int nRow,
int nCol)
public Matf(Matf arg)
public int nRow()
public int nCol()
public float get(int i,
int j)
public void set(int i,
int j,
float val)
public Matf transpose()
public Matf mul(Matf b) throws DimensionMismatchException
DimensionMismatchExceptionpublic Vecf mul(Vecf v) throws DimensionMismatchException
DimensionMismatchExceptionpublic Mat2f toMat2f() throws DimensionMismatchException
DimensionMismatchExceptionpublic Mat3f toMat3f() throws DimensionMismatchException
DimensionMismatchExceptionpublic Mat4f toMat4f() throws DimensionMismatchException
DimensionMismatchExceptionCopyright © 2007–2017 Gephi Consortium. All rights reserved.