| Package | Description |
|---|---|
| org.kramerlab.bmad.general |
Contains few workarounds that allow to work with tuples and functions.
|
| org.kramerlab.bmad.matrix |
Contains implementations of elementary data structures, required to
perform boolean matrix decompositions: matrices.
|
| Modifier and Type | Method and Description |
|---|---|
static <X,Y> Function<X,Y> |
Package.constant(Y y) |
static <X> Function<X,X> |
Package.id() |
| Modifier and Type | Method and Description |
|---|---|
<Y> RowMajor<Y> |
RowMajor.flatMap(Function<X,RowMajor<Y>> f)
A dense matrix flatMap, that is done about right: it
makes real effort not to calculate anything twice,
not to allocate more space than necessary, and not to use
dynamic memory allocation of arrayLists, which copies
entries under the hood.
|
<Y> RowMajor<Y> |
RowMajor.map(Function<X,Y> f)
Creates new matrix, where each entry is mapped by the function f
|
BooleanMatrix |
BooleanMatrix.mapBoolean(Function<Byte,Byte> function)
Map-method, restricted to boolean matrices as output.
|
<Y> RowMajor<Y> |
RowMajor.mapWithIndices(Function<Tuple<X,Tuple<Integer,Integer>>,Y> f)
Pointwise application of a function that can depend on the value and
the index.
|
Image |
RowMajor.toImage(Function<X,Color> toColor)
Converts this matrix to image.
|
protected String |
RowMajor.toString(Function<Integer,Padding> columnToHorizontalPadding,
Function<Integer,Padding> rowToVerticalPadding) |
protected String |
RowMajor.toString(Function<Integer,Padding> columnToHorizontalPadding,
Function<Integer,Padding> rowToVerticalPadding) |
| Constructor and Description |
|---|
RowMajor(int h,
int w,
Function<Tuple<Integer,Integer>,X> fill)
Creates new matrix of the specified size, with entries given by the function
entry. |
Copyright © 2015. All rights reserved.