public class FloatMatrix extends Object implements Serializable
To construct a two-dimensional matrices, you can use the following constructors and static methods.
Method | Description |
---|---|
FloatMatrix(m,n, [value1, value2, value3...]) | Values are filled in column by column. |
FloatMatrix(new float[][] {{value1, value2, ...}, ...} | Inner arrays are rows. |
FloatMatrix.zeros(m,n) | Initial values set to 0.0f. |
FloatMatrix.ones(m,n) | Initial values set to 1.0f. |
FloatMatrix.rand(m,n) | Values drawn at random between 0.0f and 1.0f. |
FloatMatrix.randn(m,n) | Values drawn from normal distribution. |
FloatMatrix.eye(n) | Unit matrix (values 0.0f except for 1.0f on the diagonal). |
FloatMatrix.diag(array) | Diagonal matrix with given diagonal elements. |
Alternatively, you can construct (column) vectors, if you just supply the length using the following constructors and static methods.
Method | Description |
---|---|
FloatMatrix(m) | Constructs a column vector. |
FloatMatrix(new float[] {value1, value2, ...}) | Constructs a column vector. |
FloatMatrix.zeros(m) | Initial values set to 0.0f. |
FloatMatrix.ones(m) | Initial values set to 1.0f. |
FloatMatrix.rand(m) | Values drawn at random between 0.0f and 1.0f. |
FloatMatrix.randn(m) | Values drawn from normal distribution. |
FloatMatrix.linspace(a, b, n) | n linearly spaced values from a to b. |
FloatMatrix.logspace(a, b, n) | n logarithmically spaced values form 10^a to 10^b. |
You can also construct new matrices by concatenating matrices either horziontally or vertically:
Method | Description |
---|---|
x.concatHorizontally(y) | New matrix will be x next to y. |
x.concatVertically(y) | New matrix will be x atop y. |
To access individual elements, or whole rows and columns, use the following methods:
x.Method | Description |
---|---|
x.get(i,j) | Get element in row i and column j. |
x.put(i, j, v) | Set element in row i and column j to value v |
x.get(i) | Get the ith element of the matrix (traversing rows first). |
x.put(i, v) | Set the ith element of the matrix (traversing rows first). |
x.getColumn(i) | Get a copy of column i. |
x.putColumn(i, c) | Put matrix c into column i. |
x.getRow(i) | Get a copy of row i. |
x.putRow(i, c) | Put matrix c into row i. |
x.swapColumns(i, j) | Swap the contents of columns i and j. |
x.swapRows(i, j) | Swap the contents of rows i and j. |
For get and put, you can also pass integer arrays, FloatMatrix objects, or Range objects, which then specify the indices used as follows:
When using put with multiple indices, the assigned object must have the correct size or be a scalar.
There exist the following Range objects. The Class RangeUtils also contains the a number of handy helper methods for constructing these ranges.
Class | RangeUtils method | Indices |
---|---|---|
AllRange | all() | All legal indices. |
PointRange | point(i) | A single point. |
IntervalRange | interval(a, b) | All indices from a to b (inclusive) |
IndicesRange | indices(int[]) | The specified indices. |
indices(FloatMatrix) | The specified indices. | |
find(FloatMatrix) | The non-zero entries of the matrix. |
The following methods can be used for duplicating and copying matrices.
Method | Description |
---|---|
x.dup() | Get a copy of x. |
x.copy(y) | Copy the contents of y to x (possible resizing x). |
The following methods permit to access the size of a matrix and change its size or shape.
x.Method | Description |
---|---|
x.rows | Number of rows. |
x.columns | Number of columns. |
x.length | Total number of elements. |
x.isEmpty() | Checks whether rows == 0 and columns == 0. |
x.isRowVector() | Checks whether rows == 1. |
x.isColumnVector() | Checks whether columns == 1. |
x.isVector() | Checks whether rows == 1 or columns == 1. |
x.isSquare() | Checks whether rows == columns. |
x.isScalar() | Checks whether length == 1. |
x.resize(r, c) | Resize the matrix to r rows and c columns, discarding the content. |
x.reshape(r, c) | Resize the matrix to r rows and c columns. Number of elements must not change. |
The size is stored in the rows and columns member variables. The total number of elements is stored in length. Do not change these values unless you know what you're doing!
The usual arithmetic operations are implemented. Each operation exists in a in-place version, recognizable by the suffix "i", to which you can supply the result matrix (or this is used, if missing). Using in-place operations can also lead to a smaller memory footprint, as the number of temporary objects is reduced (although the JVM garbage collector is usually pretty good at reusing these temporary object immediately with little overhead.)
Whenever you specify a result vector, the result vector must already have the correct dimensions.
For example, you can add two matrices using the add method. If you want to store the result in of x + y in z, type x.addi(y, z) // computes x = y + z. Even in-place methods return the result, such that you can easily chain in-place methods, for example: x.addi(y).addi(z) // computes x += y; x += z
Methods which operate element-wise only make sure that the length of the matrices is correct. Therefore, you can add a 3 * 3 matrix to a 1 * 9 matrix, for example.
Finally, there exist versions which take floats instead of FloatMatrix Objects as arguments. These then compute the operation with the same value as the right-hand-side. The same effect can be achieved by passing a FloatMatrix with exactly one element.
Operation | Method | Comment |
---|---|---|
x + y | x.add(y) | |
x - y | x.sub(y), y.rsub(x) | rsub subtracts left from right hand side |
x * y | x.mul(y) | element-wise multiplication |
x.mmul(y) | matrix-matrix multiplication | |
x.dot(y) | scalar-product | |
x / y | x.div(y), y.rdiv(x) | rdiv divides right hand side by left hand side. |
- x | x.neg() |
There also exist operations which work on whole columns or rows.
Method | Description |
---|---|
x.addRowVector | adds a vector to each row (addiRowVector works in-place) |
x.addColumnVector | adds a vector to each column |
x.subRowVector | subtracts a vector from each row |
x.subColumnVector | subtracts a vector from each column |
x.mulRowVector | Multiplies each row by a vector (elementwise) |
x.mulColumnVector | Multiplies each column by a vector (elementwise) |
x.divRowVector | Divide each row by a vector (elementwise) |
x.divColumnVector | Divide each column by a vector (elementwise) |
x.mulRow | Multiplies a row by a scalar |
x.mulColumn | Multiplies a column by a scalar |
In principle, you could achieve the same result by first calling getColumn(), adding, and then calling putColumn, but these methods are much faster.
The following comparison operations are available
Operation | Method |
---|---|
x < y | x.lt(y) |
x <= y | x.le(y) |
x > y | x.gt(y) |
x >= y | x.ge(y) |
x == y | x.eq(y) |
x != y | x.ne(y) |
Logical operations are also supported. For these operations, a value different from zero is treated as "true" and zero is treated as "false". All operations are carried out elementwise.
Operation | Method |
---|---|
x & y | x.and(y) |
x | y | x.or(y) |
x ^ y | x.xor(y) |
! x | x.not() |
Finally, there are a few more methods to compute various things:
Method | Description |
---|---|
x.max() | Return maximal element |
x.argmax() | Return index of largest element |
x.min() | Return minimal element |
x.argmin() | Return index of largest element |
x.columnMins() | Return column-wise minima |
x.columnArgmins() | Return column-wise index of minima |
x.columnMaxs() | Return column-wise maxima |
x.columnArgmaxs() | Return column-wise index of maxima |
Modifier and Type | Class and Description |
---|---|
class |
FloatMatrix.ColumnsAsListView |
class |
FloatMatrix.ElementsAsListView
A wrapper which allows to view a matrix as a List of Doubles (read-only!).
|
class |
FloatMatrix.RowsAsListView |
Modifier and Type | Field and Description |
---|---|
int |
columns
Number of columns.
|
float[] |
data
The actual data stored by rows (that is, row 0, row 1...).
|
static FloatMatrix |
EMPTY |
int |
length
Total number of elements (for convenience).
|
int |
rows
Number of rows.
|
Constructor and Description |
---|
FloatMatrix()
Creates a new FloatMatrix of size 0 times 0.
|
FloatMatrix(float[] newData)
Create a a column vector using newData as the data array.
|
FloatMatrix(float[][] data)
Creates a new n times m FloatMatrix from
the given n times m 2D data array.
|
FloatMatrix(int len)
Create a Matrix of length len.
|
FloatMatrix(int newRows,
int newColumns)
Creates a new n times m FloatMatrix.
|
FloatMatrix(int newRows,
int newColumns,
float... newData)
Create a new matrix with newRows rows, newColumns columns
using newData> as the data.
|
FloatMatrix(List<Float> data)
Creates a FloatMatrix column vector from the given List<Double&rt;.
|
FloatMatrix(String filename)
Creates a new matrix by reading it from a file.
|
Modifier and Type | Method and Description |
---|---|
FloatMatrix |
add(float v)
Add a scalar.
|
FloatMatrix |
add(FloatMatrix other)
Add a matrix.
|
FloatMatrix |
addColumnVector(FloatMatrix x)
Add a vector to all columns of the matrix.
|
FloatMatrix |
addi(float v)
Add a scalar (in place).
|
FloatMatrix |
addi(float v,
FloatMatrix result)
Add a scalar to a matrix (in-place).
|
FloatMatrix |
addi(FloatMatrix other)
Add a matrix (in place).
|
FloatMatrix |
addi(FloatMatrix other,
FloatMatrix result)
Add two matrices (in-place).
|
FloatMatrix |
addiColumnVector(FloatMatrix x)
Add a vector to all columns of the matrix (in-place).
|
FloatMatrix |
addiRowVector(FloatMatrix x)
Add a row vector to all rows of the matrix (in place).
|
FloatMatrix |
addRowVector(FloatMatrix x)
Add a row to all rows of the matrix.
|
FloatMatrix |
and(float value)
Compute elementwise logical and against a scalar.
|
FloatMatrix |
and(FloatMatrix other)
Compute elementwise logical and.
|
FloatMatrix |
andi(float value)
Compute elementwise logical and against a scalar (in-place).
|
FloatMatrix |
andi(float value,
FloatMatrix result)
Compute elementwise logical and against a scalar (in-place).
|
FloatMatrix |
andi(FloatMatrix other)
Compute elementwise logical and (in-place).
|
FloatMatrix |
andi(FloatMatrix other,
FloatMatrix result)
Compute elementwise logical and (in-place).
|
int |
argmax()
Returns the linear index of the maximal element of the matrix.
|
int |
argmin()
Returns the linear index of the minimal element.
|
void |
assertMultipliesWith(FloatMatrix a)
Throws SizeException unless matrices can be multiplied with one another.
|
void |
assertSameLength(FloatMatrix a)
Throws SizeException unless matrices have the same length.
|
void |
assertSameSize(FloatMatrix a)
Throws SizeException unless two matrices have the same size.
|
void |
assertSquare()
Throw SizeException unless matrix is square.
|
void |
checkColumns(int c)
Asserts that the amtrix has a certain number of columns.
|
void |
checkLength(int l)
Assert that the matrix has a certain length.
|
void |
checkRows(int r)
Asserts that the matrix has a certain number of rows.
|
int[] |
columnArgmaxs()
Return index of minimal element per column.
|
int[] |
columnArgmins()
Return index of minimal element per column.
|
FloatMatrix |
columnMaxs()
Return column-wise maximums.
|
FloatMatrix |
columnMeans()
Return a vector containing the means of all columns.
|
FloatMatrix |
columnMins()
Return column-wise minimums.
|
List<FloatMatrix> |
columnsAsList() |
int[][] |
columnSortingPermutations()
Return matrix of indices which sort all columns.
|
FloatMatrix |
columnSums()
Return a vector containing the sums of the columns (having number of columns many entries)
|
boolean |
compare(Object o,
float tolerance)
Compare two matrices.
|
static FloatMatrix |
concatHorizontally(FloatMatrix A,
FloatMatrix B)
Concatenates two matrices horizontally.
|
static FloatMatrix |
concatVertically(FloatMatrix A,
FloatMatrix B)
Concatenates two matrices vertically.
|
FloatMatrix |
copy(FloatMatrix a)
Copy FloatMatrix a to this.
|
FloatMatrix |
cumulativeSum()
Computes the cumulative sum, that is, the sum of all elements
of the matrix up to a given index in linear addressing.
|
FloatMatrix |
cumulativeSumi()
Computes the cumulative sum, that is, the sum of all elements
of the matrix up to a given index in linear addressing (in-place).
|
FloatMatrix |
diag()
Returns the diagonal of the matrix.
|
static FloatMatrix |
diag(FloatMatrix x)
Creates a new matrix where the values of the given vector are the diagonal values of
the matrix.
|
static FloatMatrix |
diag(FloatMatrix x,
int rows,
int columns)
Construct a matrix of arbitrary shape and set the diagonal according
to a passed vector.
|
float |
distance1(FloatMatrix other)
Returns the (1-norm) distance.
|
float |
distance2(FloatMatrix other)
Returns the (euclidean) distance.
|
FloatMatrix |
div(float v)
Elementwise divide by a scalar.
|
FloatMatrix |
div(FloatMatrix other)
Elementwise divide by a matrix.
|
FloatMatrix |
divColumnVector(FloatMatrix x) |
FloatMatrix |
divi(float v)
Elementwise divide by a scalar (in place).
|
FloatMatrix |
divi(float a,
FloatMatrix result)
Elementwise division with a scalar (in-place).
|
FloatMatrix |
divi(FloatMatrix other)
Elementwise divide by a matrix (in place).
|
FloatMatrix |
divi(FloatMatrix other,
FloatMatrix result)
Elementwise division (in-place).
|
FloatMatrix |
diviColumnVector(FloatMatrix x) |
FloatMatrix |
diviRowVector(FloatMatrix x) |
FloatMatrix |
divRowVector(FloatMatrix x) |
float |
dot(FloatMatrix other)
The scalar product of this with other.
|
FloatMatrix |
dup()
Returns a duplicate of this matrix.
|
List<Float> |
elementsAsList() |
FloatMatrix |
eq(float value)
test for equality against a scalar.
|
FloatMatrix |
eq(FloatMatrix other)
Test for equality.
|
FloatMatrix |
eqi(float value)
Test for equality against a scalar (in-place).
|
FloatMatrix |
eqi(float value,
FloatMatrix result)
Test for equality against a scalar (in-place).
|
FloatMatrix |
eqi(FloatMatrix other)
Test for equality (in-place).
|
FloatMatrix |
eqi(FloatMatrix other,
FloatMatrix result)
Test for equality (in-place).
|
boolean |
equals(Object o) |
static FloatMatrix |
eye(int n)
Construct a new n-by-n identity matrix.
|
FloatMatrix |
fill(float value)
Set all elements to a value.
|
int[] |
findIndices()
Find the linear indices of all non-zero elements.
|
FloatMatrix |
ge(float value)
test for "greater than or equal" against a scalar.
|
FloatMatrix |
ge(FloatMatrix other)
Test for "greater than or equal".
|
FloatMatrix |
gei(float value)
Test for "greater than or equal" against a scalar (in-place).
|
FloatMatrix |
gei(float value,
FloatMatrix result)
Test for "greater than or equal" against a scalar (in-place).
|
FloatMatrix |
gei(FloatMatrix other)
Test for "greater than or equal" (in-place).
|
FloatMatrix |
gei(FloatMatrix other,
FloatMatrix result)
Test for "greater than or equal" (in-place).
|
FloatMatrix |
get(FloatMatrix indices)
Get elements specified by the non-zero entries of the passed matrix.
|
FloatMatrix |
get(FloatMatrix rindices,
FloatMatrix cindices)
Get elements from columns and rows as specified by the non-zero entries of
the passed matrices.
|
FloatMatrix |
get(FloatMatrix indices,
int c)
Get elements from a column and rows as specified by the non-zero entries of
a matrix.
|
float |
get(int i)
Get a matrix element (linear indexing).
|
FloatMatrix |
get(int[] indices)
Get all elements specified by the linear indices.
|
FloatMatrix |
get(int[] indices,
int c)
Get all elements for a given column and the specified rows.
|
FloatMatrix |
get(int[] rindices,
int[] cindices)
Get all elements from the specified rows and columns.
|
FloatMatrix |
get(int r,
FloatMatrix indices)
Get elements from a row and columns as specified by the non-zero entries of
a matrix.
|
float |
get(int rowIndex,
int columnIndex)
Retrieve matrix element
|
FloatMatrix |
get(int r,
int[] indices)
Get all elements for a given row and the specified columns.
|
FloatMatrix |
get(int r,
Range cs) |
FloatMatrix |
get(Range rs,
int c) |
FloatMatrix |
get(Range rs,
Range cs)
Get elements from specified rows and columns.
|
FloatMatrix |
getColumn(int c)
Get a copy of a column.
|
FloatMatrix |
getColumn(int c,
FloatMatrix result)
Copy a column to the given vector.
|
FloatMatrix |
getColumnRange(int r,
int a,
int b)
Get elements from a row and columns a to b.
|
int |
getColumns()
Get number of columns.
|
FloatMatrix |
getColumns(FloatMatrix cindices)
Get whole columns as specified by the non-zero entries of a matrix.
|
FloatMatrix |
getColumns(int[] cindices)
Get whole columns from the passed indices.
|
FloatMatrix |
getColumns(Range indices) |
FloatMatrix |
getColumns(Range indices,
FloatMatrix result)
Get whole columns as specified by Range.
|
int |
getLength()
Get total number of elements.
|
FloatMatrix |
getRange(int a,
int b)
Return all elements with linear index a, a + 1, ..., b - 1.
|
FloatMatrix |
getRange(int ra,
int rb,
int ca,
int cb)
Get elements from rows ra to rb and
columns ca to cb.
|
FloatMatrix |
getRow(int r)
Get a copy of a row.
|
FloatMatrix |
getRow(int r,
FloatMatrix result)
Copy a row to a given vector.
|
FloatMatrix |
getRowRange(int a,
int b,
int c)
Get elements from a column and rows a/tt> to b.
|
int |
getRows()
Get number of rows.
|
FloatMatrix |
getRows(FloatMatrix rindices)
Get whole rows as specified by the non-zero entries of a matrix.
|
FloatMatrix |
getRows(int[] rindices)
Get whole rows from the passed indices.
|
FloatMatrix |
getRows(Range indices) |
FloatMatrix |
getRows(Range indices,
FloatMatrix result) |
FloatMatrix |
gt(float value)
test for "greater than" against a scalar.
|
FloatMatrix |
gt(FloatMatrix other)
Test for "greater than".
|
FloatMatrix |
gti(float value)
Test for "greater than" against a scalar (in-place).
|
FloatMatrix |
gti(float value,
FloatMatrix result)
Test for "greater than" against a scalar (in-place).
|
FloatMatrix |
gti(FloatMatrix other)
Test for "greater than" (in-place).
|
FloatMatrix |
gti(FloatMatrix other,
FloatMatrix result)
Test for "greater than" (in-place).
|
int |
hashCode() |
void |
in(DataInputStream dis)
Reads in a matrix from the given data stream.
|
int |
index(int rowIndex,
int columnIndex)
Get index of an element
|
int |
indexColumns(int i)
Compute the column index of a linear index.
|
int |
indexRows(int i)
Compute the row index of a linear index.
|
boolean |
isColumnVector()
Checks whether the matrix is a column vector.
|
boolean |
isEmpty()
Checks whether the matrix is empty.
|
FloatMatrix |
isInfinite() |
FloatMatrix |
isInfinitei() |
boolean |
isLowerTriangular()
Checks whether all entries (i, j) with i >= j are zero.
|
FloatMatrix |
isNaN() |
FloatMatrix |
isNaNi() |
boolean |
isRowVector()
Checks whether the matrix is a row vector.
|
boolean |
isScalar()
Test whether a matrix is scalar.
|
boolean |
isSquare()
Checks whether the matrix is square.
|
boolean |
isUpperTriangular()
Checks whether all entries (i, j) with i <= j are zero.
|
boolean |
isVector()
Checks whether the matrix is a vector.
|
FloatMatrix |
le(float value)
test for "less than or equal" against a scalar.
|
FloatMatrix |
le(FloatMatrix other)
Test for "less than or equal".
|
FloatMatrix |
lei(float value)
Test for "less than or equal" against a scalar (in-place).
|
FloatMatrix |
lei(float value,
FloatMatrix result)
Test for "less than or equal" against a scalar (in-place).
|
FloatMatrix |
lei(FloatMatrix other)
Test for "less than or equal" (in-place).
|
FloatMatrix |
lei(FloatMatrix other,
FloatMatrix result)
Test for "less than or equal" (in-place).
|
static FloatMatrix |
linspace(int lower,
int upper,
int size)
Construct a column vector whose entries are linearly spaced points from lower to upper with size
many steps.
|
void |
load(String filename)
Loads a matrix from a file into this matrix.
|
static FloatMatrix |
loadAsciiFile(String filename) |
static FloatMatrix |
loadCSVFile(String filename) |
static FloatMatrix |
logspace(float lower,
float upper,
int size)
Construct a column vector whose entries are logarithmically spaced points from
10^lower to 10^upper using the specified number of steps
|
FloatMatrix |
lt(float value)
test for "less than" against a scalar.
|
FloatMatrix |
lt(FloatMatrix other)
Test for "less than".
|
FloatMatrix |
lti(float value)
Test for "less than" against a scalar (in-place).
|
FloatMatrix |
lti(float value,
FloatMatrix result)
Test for "less than" against a scalar (in-place).
|
FloatMatrix |
lti(FloatMatrix other)
Test for "less than" (in-place).
|
FloatMatrix |
lti(FloatMatrix other,
FloatMatrix result)
Test for "less than" (in-place).
|
float |
max()
Returns the maximal element of the matrix.
|
FloatMatrix |
max(float v) |
FloatMatrix |
max(FloatMatrix other)
Computes the maximum between two matrices.
|
FloatMatrix |
maxi(float v) |
FloatMatrix |
maxi(float v,
FloatMatrix result) |
FloatMatrix |
maxi(FloatMatrix other)
Computes the maximum between two matrices.
|
FloatMatrix |
maxi(FloatMatrix other,
FloatMatrix result)
Computes the maximum between two matrices.
|
float |
mean()
Computes the mean value of all elements in the matrix,
that is,
x.sum() / x.length . |
float |
min()
Returns the minimal element of the matrix.
|
FloatMatrix |
min(float v) |
FloatMatrix |
min(FloatMatrix other)
Computes the minimum between two matrices.
|
FloatMatrix |
mini(float v) |
FloatMatrix |
mini(float v,
FloatMatrix result) |
FloatMatrix |
mini(FloatMatrix other)
Computes the minimum between two matrices.
|
FloatMatrix |
mini(FloatMatrix other,
FloatMatrix result)
Computes the minimum between two matrices.
|
FloatMatrix |
mmul(float v)
Matrix-multiply by a scalar.
|
FloatMatrix |
mmul(FloatMatrix other)
Matrix-multiply by a matrix.
|
FloatMatrix |
mmuli(float v)
Matrix-multiply by a scalar (in place).
|
FloatMatrix |
mmuli(float v,
FloatMatrix result)
Matrix-matrix multiplication with a scalar (for symmetry, does the
same as
muli(scalar) (in-place). |
FloatMatrix |
mmuli(FloatMatrix other)
Matrix-multiply by a matrix (in place).
|
FloatMatrix |
mmuli(FloatMatrix other,
FloatMatrix result)
Matrix-matrix multiplication (in-place).
|
FloatMatrix |
mul(float v)
Elementwise multiply by a scalar.
|
FloatMatrix |
mul(FloatMatrix other)
Elementwise multiply by a matrix.
|
FloatMatrix |
mulColumn(int c,
float scale)
Multiply a column by a scalar.
|
FloatMatrix |
mulColumnVector(FloatMatrix x)
Multiply all columns with a column vector.
|
FloatMatrix |
muli(float v)
Elementwise multiply by a scalar (in place).
|
FloatMatrix |
muli(float v,
FloatMatrix result)
Elementwise multiplication with a scalar (in-place).
|
FloatMatrix |
muli(FloatMatrix other)
Elementwise multiply by a matrix (in place).
|
FloatMatrix |
muli(FloatMatrix other,
FloatMatrix result)
Elementwise multiplication (in-place).
|
FloatMatrix |
muliColumnVector(FloatMatrix x)
Multiply all columns with a column vector (in-place).
|
FloatMatrix |
muliRowVector(FloatMatrix x)
Multiply all rows with a row vector (in-place).
|
FloatMatrix |
mulRow(int r,
float scale)
Multiply a row by a scalar.
|
FloatMatrix |
mulRowVector(FloatMatrix x)
Multiply all rows with a row vector.
|
boolean |
multipliesWith(FloatMatrix a)
Checks whether two matrices can be multiplied (that is, number of columns of
this must equal number of rows of a.
|
FloatMatrix |
ne(float value)
test for inequality against a scalar.
|
FloatMatrix |
ne(FloatMatrix other)
Test for inequality.
|
FloatMatrix |
neg()
Negate each element.
|
FloatMatrix |
negi()
Negate each element (in-place).
|
FloatMatrix |
nei(float value)
Test for inequality against a scalar (in-place).
|
FloatMatrix |
nei(float value,
FloatMatrix result)
Test for inequality against a scalar (in-place).
|
FloatMatrix |
nei(FloatMatrix other)
Test for inequality (in-place).
|
FloatMatrix |
nei(FloatMatrix other,
FloatMatrix result)
Test for inequality (in-place).
|
float |
norm1()
The 1-norm of the matrix as vector (sum of absolute values of elements).
|
float |
norm2()
The Euclidean norm of the matrix as vector, also the Frobenius
norm of the matrix.
|
float |
normmax()
The maximum norm of the matrix (maximal absolute value of the elements).
|
FloatMatrix |
not()
Maps zero to 1.0f and all non-zero values to 0.0f.
|
FloatMatrix |
noti()
Maps zero to 1.0f and all non-zero values to 0.0f (in-place).
|
static FloatMatrix |
ones(int length)
Creates a column vector with all elements equal to 1.
|
static FloatMatrix |
ones(int rows,
int columns)
Creates a new matrix in which all values are equal 1.
|
FloatMatrix |
or(float value)
Compute elementwise logical or against a scalar.
|
FloatMatrix |
or(FloatMatrix other)
Compute elementwise logical or.
|
FloatMatrix |
ori(float value)
Compute elementwise logical or against a scalar (in-place).
|
FloatMatrix |
ori(float value,
FloatMatrix result)
Compute elementwise logical or against a scalar (in-place).
|
FloatMatrix |
ori(FloatMatrix other)
Compute elementwise logical or (in-place).
|
FloatMatrix |
ori(FloatMatrix other,
FloatMatrix result)
Compute elementwise logical or (in-place).
|
void |
out(DataOutputStream dos)
Writes out this matrix to the given data stream.
|
void |
print()
Pretty-print this matrix to System.out.
|
float |
prod()
Computes the product of all elements of the matrix
|
float |
project(FloatMatrix other)
Computes the projection coefficient of other on this.
|
FloatMatrix |
put(FloatMatrix indices,
float v)
Put a single value into the elements specified by the non-zero
entries of indices (linear adressing).
|
FloatMatrix |
put(FloatMatrix indices,
FloatMatrix v)
Put a sub-matrix into the indices specified by the non-zero entries
of indices (linear adressing).
|
FloatMatrix |
put(FloatMatrix rindices,
FloatMatrix cindices,
float v)
Put a single value in the specified rows and columns (non-zero entries
of rindices and cindices.
|
FloatMatrix |
put(FloatMatrix rindices,
FloatMatrix cindices,
FloatMatrix v)
Put a sub-matrix into the specified rows and columns (non-zero entries of
rindices and cindices.
|
FloatMatrix |
put(FloatMatrix indices,
int c,
float v)
Put a single value into the specified rows (non-zero entries of
indices) of a column.
|
FloatMatrix |
put(FloatMatrix indices,
int c,
FloatMatrix v)
Put a sub-vector into the specified rows (non-zero entries of indices) of a column.
|
FloatMatrix |
put(int[] indices,
float v)
Put a single value into the specified indices (linear adressing).
|
FloatMatrix |
put(int[] indices,
FloatMatrix x)
Set elements in linear ordering in the specified indices.
|
FloatMatrix |
put(int[] rindices,
int[] cindices,
float v)
Put a single value into the specified rows and columns.
|
FloatMatrix |
put(int[] rindices,
int[] cindices,
FloatMatrix x)
Put a sub-matrix as specified by the indices.
|
FloatMatrix |
put(int[] indices,
int c,
float v)
Put a single value into the specified rows of a column.
|
FloatMatrix |
put(int[] indices,
int c,
FloatMatrix x)
Set multiple elements in a row.
|
FloatMatrix |
put(int i,
float v)
Set a matrix element (linear indexing).
|
FloatMatrix |
put(int r,
FloatMatrix indices,
float v)
Put a single value into the specified columns (non-zero entries of
indices) of a row.
|
FloatMatrix |
put(int r,
FloatMatrix indices,
FloatMatrix v)
Put a sub-vector into the specified columns (non-zero entries of indices) of a row.
|
FloatMatrix |
put(int r,
int[] indices,
float v)
Put a single value into a row and the specified columns.
|
FloatMatrix |
put(int r,
int[] indices,
FloatMatrix x)
Set multiple elements in a row.
|
FloatMatrix |
put(int rowIndex,
int columnIndex,
float value)
Set matrix element
|
FloatMatrix |
put(Range rs,
Range cs,
FloatMatrix x)
Put a matrix into specified indices.
|
void |
putColumn(int c,
FloatMatrix v)
Copy a column back into the matrix.
|
void |
putRow(int r,
FloatMatrix v)
Copy a row back into the matrix.
|
static FloatMatrix |
rand(int len)
Creates a column vector with random values uniformly in 0..1.
|
static FloatMatrix |
rand(int rows,
int columns)
Create matrix with random values uniformly in 0..1.
|
static FloatMatrix |
randn(int len)
Create column vector with normally distributed random values.
|
static FloatMatrix |
randn(int rows,
int columns)
Create matrix with normally distributed random values.
|
FloatMatrix |
rankOneUpdate(float alpha,
FloatMatrix x)
Computes a rank-1-update A = A + alpha * x * x'.
|
FloatMatrix |
rankOneUpdate(float alpha,
FloatMatrix x,
FloatMatrix y)
Computes a rank-1-update A = A + alpha * x * y'.
|
FloatMatrix |
rankOneUpdate(FloatMatrix x)
Computes a rank-1-update A = A + x * x'.
|
FloatMatrix |
rankOneUpdate(FloatMatrix x,
FloatMatrix y)
Computes a rank-1-update A = A + x * y'.
|
FloatMatrix |
rdiv(float v)
(right-)elementwise divide by a scalar.
|
FloatMatrix |
rdiv(FloatMatrix other)
(right-)elementwise divide by a matrix.
|
FloatMatrix |
rdivi(float v)
(right-)elementwise divide by a scalar (in place).
|
FloatMatrix |
rdivi(float a,
FloatMatrix result)
(Elementwise) division with a scalar, with operands switched.
|
FloatMatrix |
rdivi(FloatMatrix other)
(right-)elementwise divide by a matrix (in place).
|
FloatMatrix |
rdivi(FloatMatrix other,
FloatMatrix result)
Elementwise division, with operands switched.
|
FloatMatrix |
repmat(int rowMult,
int columnMult)
Generate a new matrix which has the given number of replications of this.
|
FloatMatrix |
reshape(int newRows,
int newColumns)
Reshape the matrix.
|
void |
resize(int newRows,
int newColumns)
Resize the matrix.
|
int[] |
rowArgmaxs()
Return index of minimal element per row.
|
int[] |
rowArgmins()
Return index of minimal element per row.
|
FloatMatrix |
rowMaxs()
Return row-wise maximums.
|
FloatMatrix |
rowMeans()
Return a vector containing the means of the rows.
|
FloatMatrix |
rowMins()
Return row-wise minimums.
|
List<FloatMatrix> |
rowsAsList() |
int[][] |
rowSortingPermutations()
Return matrix of indices which sort all columns.
|
FloatMatrix |
rowSums()
Return a vector containing the sum of the rows.
|
FloatMatrix |
rsub(float v)
(right-)subtract a scalar.
|
FloatMatrix |
rsub(FloatMatrix other)
(right-)subtract a matrix.
|
FloatMatrix |
rsubi(float v)
(right-)subtract a scalar (in place).
|
FloatMatrix |
rsubi(float a,
FloatMatrix result)
Subtract a matrix from a scalar (in-place).
|
FloatMatrix |
rsubi(FloatMatrix other)
(right-)subtract a matrix (in place).
|
FloatMatrix |
rsubi(FloatMatrix other,
FloatMatrix result)
Subtract two matrices, but subtract first from second matrix, that is,
compute result = other - this (in-place).
|
boolean |
sameLength(FloatMatrix a)
Checks whether two matrices have the same length.
|
boolean |
sameSize(FloatMatrix a)
Checks whether two matrices have the same size.
|
void |
save(String filename)
Saves this matrix to the specified file.
|
float |
scalar()
Return the first element of the matrix.
|
static FloatMatrix |
scalar(float s)
Create a 1-by-1 matrix.
|
FloatMatrix |
select(FloatMatrix where) |
FloatMatrix |
selecti(FloatMatrix where) |
FloatMatrix |
sort()
Return a new matrix with all elements sorted.
|
FloatMatrix |
sortColumns()
Sort columns.
|
FloatMatrix |
sortColumnsi()
Sort columns (in-place).
|
FloatMatrix |
sorti()
Sort elements in-place.
|
int[] |
sortingPermutation()
Get the sorting permutation.
|
FloatMatrix |
sortRows()
Sort rows.
|
FloatMatrix |
sortRowsi()
Sort rows (in-place).
|
float |
squaredDistance(FloatMatrix other)
Returns the squared (Euclidean) distance.
|
FloatMatrix |
sub(float v)
Subtract a scalar.
|
FloatMatrix |
sub(FloatMatrix other)
Subtract a matrix.
|
FloatMatrix |
subColumnVector(FloatMatrix x)
Subtract a vector from all columns of the matrix.
|
FloatMatrix |
subi(float v)
Subtract a scalar (in place).
|
FloatMatrix |
subi(float v,
FloatMatrix result)
Subtract a scalar from a matrix (in-place).
|
FloatMatrix |
subi(FloatMatrix other)
Subtract a matrix (in place).
|
FloatMatrix |
subi(FloatMatrix other,
FloatMatrix result)
Subtract two matrices (in-place).
|
FloatMatrix |
subiColumnVector(FloatMatrix x)
Subtract a column vector from all columns of the matrix (in-place).
|
FloatMatrix |
subiRowVector(FloatMatrix x)
Subtract a row vector from all rows of the matrix (in-place).
|
FloatMatrix |
subRowVector(FloatMatrix x)
Subtract a row vector from all rows of the matrix.
|
float |
sum()
Computes the sum of all elements of the matrix.
|
FloatMatrix |
swapColumns(int i,
int j)
Swap two columns of a matrix.
|
FloatMatrix |
swapRows(int i,
int j)
Swap two rows of a matrix.
|
float[] |
toArray()
Converts the matrix to a one-dimensional array of floats.
|
float[][] |
toArray2()
Converts the matrix to a two-dimensional array of floats.
|
boolean[] |
toBooleanArray()
Convert the matrix to a one-dimensional array of boolean values.
|
boolean[][] |
toBooleanArray2()
Convert the matrix to a two-dimensional array of boolean values.
|
ComplexFloatMatrix |
toComplex() |
FloatMatrix |
toFloat() |
int[] |
toIntArray()
Converts the matrix to a one-dimensional array of integers.
|
int[][] |
toIntArray2()
Convert the matrix to a two-dimensional array of integers.
|
String |
toString()
Generate string representation of the matrix.
|
String |
toString(String fmt)
Generate string representation of the matrix, with specified
format for the entries.
|
String |
toString(String fmt,
String open,
String close,
String colSep,
String rowSep)
Generate string representation of the matrix, with specified
format for the entries, and delimiters.
|
FloatMatrix |
transpose()
Return transposed copy of this matrix.
|
FloatMatrix |
truth()
Maps zero to 0.0f and all non-zero values to 1.0f.
|
FloatMatrix |
truthi()
Maps zero to 0.0f and all non-zero values to 1.0f (in-place).
|
static FloatMatrix |
valueOf(String text)
Construct FloatMatrix from ASCII representation.
|
FloatMatrix |
xor(float value)
Compute elementwise logical xor against a scalar.
|
FloatMatrix |
xor(FloatMatrix other)
Compute elementwise logical xor.
|
FloatMatrix |
xori(float value)
Compute elementwise logical xor against a scalar (in-place).
|
FloatMatrix |
xori(float value,
FloatMatrix result)
Compute elementwise logical xor against a scalar (in-place).
|
FloatMatrix |
xori(FloatMatrix other)
Compute elementwise logical xor (in-place).
|
FloatMatrix |
xori(FloatMatrix other,
FloatMatrix result)
Compute elementwise logical xor (in-place).
|
static FloatMatrix |
zeros(int length)
Creates a column vector of given length.
|
static FloatMatrix |
zeros(int rows,
int columns)
Creates a new matrix in which all values are equal 0.
|
public int rows
public int columns
public int length
public float[] data
public static final FloatMatrix EMPTY
public FloatMatrix(int newRows, int newColumns, float... newData)
newRows
- the number of rows of the new matrixnewColumns
- the number of columns of the new matrixnewData
- the data array to be used. Data must be stored by column (column-major)public FloatMatrix(int newRows, int newColumns)
newRows
- the number of rows (n) of the new matrix.newColumns
- the number of columns (m) of the new matrix.public FloatMatrix()
public FloatMatrix(int len)
len
- public FloatMatrix(float[] newData)
public FloatMatrix(String filename) throws IOException
filename
- the path and name of the file to read the matrix fromIOException
public FloatMatrix(float[][] data)
new FloatMatrix(new float[][]{{1d, 2d, 3d}, {4d, 5d, 6d}, {7d, 8d, 9d}}).print();
1.0f 2.0f 3.0f 4.0f 5.0f 6.0f 7.0f 8.0f 9.0f.
data
- n times m data arraypublic static FloatMatrix valueOf(String text)
public static FloatMatrix rand(int rows, int columns)
public static FloatMatrix rand(int len)
public static FloatMatrix randn(int rows, int columns)
public static FloatMatrix randn(int len)
public static FloatMatrix zeros(int rows, int columns)
public static FloatMatrix zeros(int length)
public static FloatMatrix ones(int rows, int columns)
public static FloatMatrix ones(int length)
public static FloatMatrix eye(int n)
public static FloatMatrix diag(FloatMatrix x)
public static FloatMatrix diag(FloatMatrix x, int rows, int columns)
x
- vector to fill the diagonal withrows
- number of rows of the resulting matrixcolumns
- number of columns of the resulting matrixpublic static FloatMatrix scalar(float s)
public boolean isScalar()
public float scalar()
public static FloatMatrix logspace(float lower, float upper, int size)
lower
- starting exponentupper
- ending exponentsize
- number of stepspublic static FloatMatrix linspace(int lower, int upper, int size)
lower
- starting valueupper
- end valuesize
- number of stepspublic static FloatMatrix concatHorizontally(FloatMatrix A, FloatMatrix B)
public static FloatMatrix concatVertically(FloatMatrix A, FloatMatrix B)
public FloatMatrix get(int[] indices)
public FloatMatrix get(int r, int[] indices)
public FloatMatrix get(int[] indices, int c)
public FloatMatrix get(int[] rindices, int[] cindices)
public FloatMatrix get(Range rs, Range cs)
public FloatMatrix get(Range rs, int c)
public FloatMatrix get(int r, Range cs)
public FloatMatrix get(FloatMatrix indices)
public FloatMatrix get(int r, FloatMatrix indices)
public FloatMatrix get(FloatMatrix indices, int c)
public FloatMatrix get(FloatMatrix rindices, FloatMatrix cindices)
public FloatMatrix getRange(int a, int b)
public FloatMatrix getColumnRange(int r, int a, int b)
public FloatMatrix getRowRange(int a, int b, int c)
public FloatMatrix getRange(int ra, int rb, int ca, int cb)
public FloatMatrix getRows(int[] rindices)
public FloatMatrix getRows(FloatMatrix rindices)
public FloatMatrix getRows(Range indices, FloatMatrix result)
public FloatMatrix getRows(Range indices)
public FloatMatrix getColumns(int[] cindices)
public FloatMatrix getColumns(FloatMatrix cindices)
public FloatMatrix getColumns(Range indices, FloatMatrix result)
public FloatMatrix getColumns(Range indices)
public void checkLength(int l)
SizeException
public void checkRows(int r)
SizeException
public void checkColumns(int c)
SizeException
public FloatMatrix put(int[] indices, FloatMatrix x)
a.put(new int[]{ 1, 2, 0 }, new FloatMatrix(3, 1, 2.0f, 4.0f, 8.0f)
does a.put(1, 2.0f), a.put(2, 4.0f), a.put(0, 8.0f)
.public FloatMatrix put(int r, int[] indices, FloatMatrix x)
public FloatMatrix put(int[] indices, int c, FloatMatrix x)
public FloatMatrix put(int[] rindices, int[] cindices, FloatMatrix x)
public FloatMatrix put(Range rs, Range cs, FloatMatrix x)
public FloatMatrix put(int[] indices, float v)
public FloatMatrix put(int r, int[] indices, float v)
public FloatMatrix put(int[] indices, int c, float v)
public FloatMatrix put(int[] rindices, int[] cindices, float v)
public FloatMatrix put(FloatMatrix indices, FloatMatrix v)
public FloatMatrix put(int r, FloatMatrix indices, FloatMatrix v)
public FloatMatrix put(FloatMatrix indices, int c, FloatMatrix v)
public FloatMatrix put(FloatMatrix rindices, FloatMatrix cindices, FloatMatrix v)
public FloatMatrix put(FloatMatrix indices, float v)
public FloatMatrix put(int r, FloatMatrix indices, float v)
public FloatMatrix put(FloatMatrix indices, int c, float v)
public FloatMatrix put(FloatMatrix rindices, FloatMatrix cindices, float v)
public int[] findIndices()
public FloatMatrix transpose()
public boolean compare(Object o, float tolerance)
public void resize(int newRows, int newColumns)
public FloatMatrix reshape(int newRows, int newColumns)
public FloatMatrix repmat(int rowMult, int columnMult)
public boolean sameSize(FloatMatrix a)
public void assertSameSize(FloatMatrix a)
public boolean multipliesWith(FloatMatrix a)
public void assertMultipliesWith(FloatMatrix a)
public boolean sameLength(FloatMatrix a)
public void assertSameLength(FloatMatrix a)
public FloatMatrix copy(FloatMatrix a)
public FloatMatrix dup()
public FloatMatrix swapColumns(int i, int j)
public FloatMatrix swapRows(int i, int j)
public FloatMatrix put(int rowIndex, int columnIndex, float value)
public float get(int rowIndex, int columnIndex)
public int index(int rowIndex, int columnIndex)
public int indexRows(int i)
public int indexColumns(int i)
public float get(int i)
public FloatMatrix put(int i, float v)
public FloatMatrix fill(float value)
public int getRows()
public int getColumns()
public int getLength()
public boolean isEmpty()
public boolean isSquare()
public void assertSquare()
public boolean isVector()
public boolean isRowVector()
public boolean isColumnVector()
public FloatMatrix diag()
public void print()
public String toString()
public String toString(String fmt)
x.toString("%.1f")
generates a string representations having only one position after the
decimal point.public String toString(String fmt, String open, String close, String colSep, String rowSep)
fmt
- entry format (passed to String.format())open
- opening parenthesisclose
- closing parenthesiscolSep
- separator between columnsrowSep
- separator between rowspublic float[] toArray()
public float[][] toArray2()
public int[] toIntArray()
public int[][] toIntArray2()
public boolean[] toBooleanArray()
public boolean[][] toBooleanArray2()
public FloatMatrix toFloat()
public List<FloatMatrix> rowsAsList()
public List<FloatMatrix> columnsAsList()
public FloatMatrix addi(FloatMatrix other, FloatMatrix result)
public FloatMatrix addi(float v, FloatMatrix result)
public FloatMatrix subi(FloatMatrix other, FloatMatrix result)
public FloatMatrix subi(float v, FloatMatrix result)
public FloatMatrix rsubi(FloatMatrix other, FloatMatrix result)
public FloatMatrix rsubi(float a, FloatMatrix result)
public FloatMatrix muli(FloatMatrix other, FloatMatrix result)
public FloatMatrix muli(float v, FloatMatrix result)
public FloatMatrix mmuli(FloatMatrix other, FloatMatrix result)
public FloatMatrix mmuli(float v, FloatMatrix result)
muli(scalar)
(in-place).public FloatMatrix divi(FloatMatrix other, FloatMatrix result)
public FloatMatrix divi(float a, FloatMatrix result)
public FloatMatrix rdivi(FloatMatrix other, FloatMatrix result)
result = other / this
(in-place).public FloatMatrix rdivi(float a, FloatMatrix result)
result = a / this
(in-place).public FloatMatrix negi()
public FloatMatrix neg()
public FloatMatrix noti()
public FloatMatrix not()
public FloatMatrix truthi()
public FloatMatrix truth()
public FloatMatrix isNaNi()
public FloatMatrix isNaN()
public FloatMatrix isInfinitei()
public FloatMatrix isInfinite()
public boolean isLowerTriangular()
public boolean isUpperTriangular()
public FloatMatrix selecti(FloatMatrix where)
public FloatMatrix select(FloatMatrix where)
public FloatMatrix rankOneUpdate(float alpha, FloatMatrix x, FloatMatrix y)
public FloatMatrix rankOneUpdate(float alpha, FloatMatrix x)
public FloatMatrix rankOneUpdate(FloatMatrix x)
public FloatMatrix rankOneUpdate(FloatMatrix x, FloatMatrix y)
public float min()
public int argmin()
public FloatMatrix mini(FloatMatrix other, FloatMatrix result)
public FloatMatrix mini(FloatMatrix other)
public FloatMatrix min(FloatMatrix other)
public FloatMatrix mini(float v, FloatMatrix result)
public FloatMatrix mini(float v)
public FloatMatrix min(float v)
public float max()
public int argmax()
public FloatMatrix maxi(FloatMatrix other, FloatMatrix result)
public FloatMatrix maxi(FloatMatrix other)
public FloatMatrix max(FloatMatrix other)
public FloatMatrix maxi(float v, FloatMatrix result)
public FloatMatrix maxi(float v)
public FloatMatrix max(float v)
public float sum()
public float prod()
public float mean()
x.sum() / x.length
.public FloatMatrix cumulativeSumi()
public FloatMatrix cumulativeSum()
public float dot(FloatMatrix other)
public float project(FloatMatrix other)
public float norm2()
public float normmax()
public float norm1()
public float squaredDistance(FloatMatrix other)
public float distance2(FloatMatrix other)
public float distance1(FloatMatrix other)
public FloatMatrix sort()
public FloatMatrix sorti()
public int[] sortingPermutation()
public FloatMatrix sortColumnsi()
public FloatMatrix sortColumns()
public int[][] columnSortingPermutations()
public FloatMatrix sortRowsi()
public FloatMatrix sortRows()
public int[][] rowSortingPermutations()
public FloatMatrix columnSums()
public FloatMatrix columnMeans()
public FloatMatrix rowSums()
public FloatMatrix rowMeans()
public FloatMatrix getColumn(int c)
public FloatMatrix getColumn(int c, FloatMatrix result)
public void putColumn(int c, FloatMatrix v)
public FloatMatrix getRow(int r)
public FloatMatrix getRow(int r, FloatMatrix result)
public void putRow(int r, FloatMatrix v)
public FloatMatrix columnMins()
public int[] columnArgmins()
public FloatMatrix columnMaxs()
public int[] columnArgmaxs()
public FloatMatrix rowMins()
public int[] rowArgmins()
public FloatMatrix rowMaxs()
public int[] rowArgmaxs()
public FloatMatrix addiRowVector(FloatMatrix x)
public FloatMatrix addRowVector(FloatMatrix x)
public FloatMatrix addiColumnVector(FloatMatrix x)
public FloatMatrix addColumnVector(FloatMatrix x)
public FloatMatrix subiRowVector(FloatMatrix x)
public FloatMatrix subRowVector(FloatMatrix x)
public FloatMatrix subiColumnVector(FloatMatrix x)
public FloatMatrix subColumnVector(FloatMatrix x)
public FloatMatrix mulRow(int r, float scale)
public FloatMatrix mulColumn(int c, float scale)
public FloatMatrix muliColumnVector(FloatMatrix x)
public FloatMatrix mulColumnVector(FloatMatrix x)
public FloatMatrix muliRowVector(FloatMatrix x)
public FloatMatrix mulRowVector(FloatMatrix x)
public FloatMatrix diviRowVector(FloatMatrix x)
public FloatMatrix divRowVector(FloatMatrix x)
public FloatMatrix diviColumnVector(FloatMatrix x)
public FloatMatrix divColumnVector(FloatMatrix x)
public void out(DataOutputStream dos) throws IOException
dos
- the data output stream to write to.IOException
public void in(DataInputStream dis) throws IOException
dis
- the data input stream to read from.IOException
public void save(String filename) throws IOException
filename
- the file to write the matrix in.IOException
- thrown on errors while writing the matrix to the filepublic void load(String filename) throws IOException
filename
- the file to read the matrix fromIOException
- thrown on errors while reading the matrixpublic static FloatMatrix loadAsciiFile(String filename) throws IOException
IOException
public static FloatMatrix loadCSVFile(String filename) throws IOException
IOException
public FloatMatrix addi(FloatMatrix other)
public FloatMatrix add(FloatMatrix other)
public FloatMatrix addi(float v)
public FloatMatrix add(float v)
public FloatMatrix subi(FloatMatrix other)
public FloatMatrix sub(FloatMatrix other)
public FloatMatrix subi(float v)
public FloatMatrix sub(float v)
public FloatMatrix rsubi(FloatMatrix other)
public FloatMatrix rsub(FloatMatrix other)
public FloatMatrix rsubi(float v)
public FloatMatrix rsub(float v)
public FloatMatrix divi(FloatMatrix other)
public FloatMatrix div(FloatMatrix other)
public FloatMatrix divi(float v)
public FloatMatrix div(float v)
public FloatMatrix rdivi(FloatMatrix other)
public FloatMatrix rdiv(FloatMatrix other)
public FloatMatrix rdivi(float v)
public FloatMatrix rdiv(float v)
public FloatMatrix muli(FloatMatrix other)
public FloatMatrix mul(FloatMatrix other)
public FloatMatrix muli(float v)
public FloatMatrix mul(float v)
public FloatMatrix mmuli(FloatMatrix other)
public FloatMatrix mmul(FloatMatrix other)
public FloatMatrix mmuli(float v)
public FloatMatrix mmul(float v)
public FloatMatrix lti(FloatMatrix other, FloatMatrix result)
public FloatMatrix lti(FloatMatrix other)
public FloatMatrix lt(FloatMatrix other)
public FloatMatrix lti(float value, FloatMatrix result)
public FloatMatrix lti(float value)
public FloatMatrix lt(float value)
public FloatMatrix gti(FloatMatrix other, FloatMatrix result)
public FloatMatrix gti(FloatMatrix other)
public FloatMatrix gt(FloatMatrix other)
public FloatMatrix gti(float value, FloatMatrix result)
public FloatMatrix gti(float value)
public FloatMatrix gt(float value)
public FloatMatrix lei(FloatMatrix other, FloatMatrix result)
public FloatMatrix lei(FloatMatrix other)
public FloatMatrix le(FloatMatrix other)
public FloatMatrix lei(float value, FloatMatrix result)
public FloatMatrix lei(float value)
public FloatMatrix le(float value)
public FloatMatrix gei(FloatMatrix other, FloatMatrix result)
public FloatMatrix gei(FloatMatrix other)
public FloatMatrix ge(FloatMatrix other)
public FloatMatrix gei(float value, FloatMatrix result)
public FloatMatrix gei(float value)
public FloatMatrix ge(float value)
public FloatMatrix eqi(FloatMatrix other, FloatMatrix result)
public FloatMatrix eqi(FloatMatrix other)
public FloatMatrix eq(FloatMatrix other)
public FloatMatrix eqi(float value, FloatMatrix result)
public FloatMatrix eqi(float value)
public FloatMatrix eq(float value)
public FloatMatrix nei(FloatMatrix other, FloatMatrix result)
public FloatMatrix nei(FloatMatrix other)
public FloatMatrix ne(FloatMatrix other)
public FloatMatrix nei(float value, FloatMatrix result)
public FloatMatrix nei(float value)
public FloatMatrix ne(float value)
public FloatMatrix andi(FloatMatrix other, FloatMatrix result)
public FloatMatrix andi(FloatMatrix other)
public FloatMatrix and(FloatMatrix other)
public FloatMatrix andi(float value, FloatMatrix result)
public FloatMatrix andi(float value)
public FloatMatrix and(float value)
public FloatMatrix ori(FloatMatrix other, FloatMatrix result)
public FloatMatrix ori(FloatMatrix other)
public FloatMatrix or(FloatMatrix other)
public FloatMatrix ori(float value, FloatMatrix result)
public FloatMatrix ori(float value)
public FloatMatrix or(float value)
public FloatMatrix xori(FloatMatrix other, FloatMatrix result)
public FloatMatrix xori(FloatMatrix other)
public FloatMatrix xor(FloatMatrix other)
public FloatMatrix xori(float value, FloatMatrix result)
public FloatMatrix xori(float value)
public FloatMatrix xor(float value)
public ComplexFloatMatrix toComplex()
Copyright © 2015. All rights reserved.