public class ObjectFactory1D extends PersistentObject
ObjectFactory1D F = ObjectFactory1D.dense; F.make(1000); ... |
Modifier and Type | Field and Description |
---|---|
static ObjectFactory1D |
dense
A factory producing dense matrices.
|
static ObjectFactory1D |
sparse
A factory producing sparse matrices.
|
serialVersionUID
Modifier | Constructor and Description |
---|---|
protected |
ObjectFactory1D()
Makes this class non instantiable, but still let's others inherit from it.
|
Modifier and Type | Method and Description |
---|---|
ObjectMatrix1D |
append(ObjectMatrix1D A,
ObjectMatrix1D B)
C = A||B; Constructs a new matrix which is the concatenation of two other matrices.
|
ObjectMatrix1D |
make(int size)
Constructs a matrix with the given shape, each cell initialized with zero.
|
ObjectMatrix1D |
make(int size,
Object initialValue)
Constructs a matrix with the given shape, each cell initialized with the given value.
|
ObjectMatrix1D |
make(Object[] values)
Constructs a matrix with the given cell values.
|
ObjectMatrix1D |
make(ObjectArrayList values)
Constructs a matrix from the values of the given list.
|
ObjectMatrix1D |
make(ObjectMatrix1D[] parts)
Constructs a matrix which is the concatenation of all given parts.
|
ObjectMatrix1D |
repeat(ObjectMatrix1D A,
int repeat)
C = A||A||..||A; Constructs a new matrix which is concatenated repeat times.
|
ObjectArrayList |
toList(ObjectMatrix1D values)
Constructs a list from the given matrix.
|
clone
public static final ObjectFactory1D dense
public static final ObjectFactory1D sparse
protected ObjectFactory1D()
public ObjectMatrix1D append(ObjectMatrix1D A, ObjectMatrix1D B)
public ObjectMatrix1D make(ObjectMatrix1D[] parts)
public ObjectMatrix1D make(Object[] values)
values
- The values to be filled into the new matrix.public ObjectMatrix1D make(int size)
public ObjectMatrix1D make(int size, Object initialValue)
public ObjectMatrix1D make(ObjectArrayList values)
values
- The values to be filled into the new matrix.public ObjectMatrix1D repeat(ObjectMatrix1D A, int repeat)
0 1 repeat(3) --> 0 1 0 1 0 1
public ObjectArrayList toList(ObjectMatrix1D values)
values
- The values to be filled into the new list.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.