See: Description
Package | Description |
---|---|
org.jblas |
Main linear algebra package.
|
org.jblas.benchmark |
Simple benchmarking tool.
|
org.jblas.exceptions |
jblas related exceptions.
|
org.jblas.ranges |
Provide ways to specify indices ranges.
|
org.jblas.util |
Support classes for jBLAS.
|
If you are really impatient, I’d suggest you read the Classes Overview below and otherwise stick to the API Documentation for the classes like DoubleMatrix.
The main goals of jblas were to provide very high performance, close to what you get from state-of-the-art BLAS and LAPACK libraries, and easy of use, which means that in the ideal case, you can just mechanically translate a matrix expression from formulas to Java code.
In all brevity, here is what you need to know to get started:
org.jblas
which represent real a
nd complex matrices in single and
double precision.
ones
(constructs a matrix of all ones),
zeros
, rand
(entries uniformly distributed between 0 and 1),
randn
(entries normally distributed), eye
(unit matrix), diag
(matrix with given diagonal). Dimensions are specified in the order
“row”, “column”. The number of columns defaults to 1 if omitted
(meaning that you construct a row vector, if you supply just one
dimension).
put
and get
. Methods also exist for
reading or writing a whole column, row, or submatrix.
add
, – becomes sub
, * becomes mul
, / becomes
div
,
and so on.
mul
is element-wise multiplication. Matrix-matrix multiplication
is called mmul
.
addi
is like +=
.
What is missing right now:
Copyright © 2015. All rights reserved.