Class Matrix<T extends NumericType<T>>
java.lang.Object
net.woggioni.jmath.Matrix<T>
- All Implemented Interfaces:
Iterable<Matrix.Element<T>>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfacestatic interfaceMatrix.ValueGenerator<T extends NumericType<T>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()det()booleanvoidget(int row, int column) intintgetRows()static <T extends NumericType<T>>
Matrix<T> identity(NumericTypeFactory<T> numericTypeFactory, int size) invert()iterator()luDet()lup()luSolve(Vector<T> b, Matrix.Pivot pivot) <U extends NumericType<U>>
Matrix<U> map(NumericTypeFactory<U> numericTypeFactory, Function<T, U> op) norm2()static <T extends NumericType<T>>
Matrix<T> of(NumericTypeFactory<T> numericTypeFactory, int rows, int columns) static <T extends NumericType<T>>
Matrix<T> of(NumericTypeFactory<T> numericTypeFactory, int rows, int columns, Matrix.ValueGenerator<T> generator) static <T extends NumericType<T>>
Matrix<T> of(NumericTypeFactory<T> numericTypeFactory, int rows, int columns, T... values) static <T extends NumericType<T>>
Matrix<T> of(NumericTypeFactory<T> numericTypeFactory, T[][] values) voidtoString()tril()triu()Methods inherited from class Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
Matrix
-
-
Method Details
-
of
public static <T extends NumericType<T>> Matrix<T> of(NumericTypeFactory<T> numericTypeFactory, int rows, int columns, Matrix.ValueGenerator<T> generator) -
of
public static <T extends NumericType<T>> Matrix<T> of(NumericTypeFactory<T> numericTypeFactory, int rows, int columns) -
of
public static <T extends NumericType<T>> Matrix<T> of(NumericTypeFactory<T> numericTypeFactory, T[][] values) -
of
public static <T extends NumericType<T>> Matrix<T> of(NumericTypeFactory<T> numericTypeFactory, int rows, int columns, T... values) -
get
-
set
-
getRows
public int getRows() -
getColumns
public int getColumns() -
map
-
map
public <U extends NumericType<U>> Matrix<U> map(NumericTypeFactory<U> numericTypeFactory, Function<T, U> op) -
map
-
add
-
sub
-
mul
-
div
-
add
-
sub
-
mul
-
div
-
solve
-
lup
-
gaussJordanLow
public void gaussJordanLow() -
det
-
invert
-
triu
-
triu
-
tril
-
tril
-
luSolve
-
toString
-
clone
-
identity
public static <T extends NumericType<T>> Matrix<T> identity(NumericTypeFactory<T> numericTypeFactory, int size) -
luDet
-
transpose
-
mmul
-
mmul
-
equals
-
squaredNorm2
-
norm2
-
iterator
- Specified by:
iteratorin interfaceIterable<T extends NumericType<T>>
-