Package | Description |
---|---|
cern.colt.matrix.tint |
Matrix interfaces and factories holding elements of int data type.
|
cern.colt.matrix.tint.algo |
Algorithms operating on integer matrices.
|
cern.colt.matrix.tint.impl |
Efficient and flexible dense and sparse 1, 2 and 3-dimensional matrices holding elements of int data type.
|
edu.emory.mathcs.utils |
Utility classes.
|
Modifier and Type | Method and Description |
---|---|
IntMatrix1D |
IntFactory1D.append(IntMatrix1D A,
IntMatrix1D B)
C = A||B; Constructs a new matrix which is the concatenation of two other
matrices.
|
IntMatrix1D |
IntFactory1D.ascending(int size)
Constructs a matrix with cells having ascending values.
|
IntMatrix1D |
IntMatrix1D.assign(int value)
Sets all cells to the state specified by value.
|
IntMatrix1D |
IntMatrix1D.assign(int[] values)
Sets all cells to the state specified by values.
|
IntMatrix1D |
IntMatrix1D.assign(IntFunction f)
Assigns the result of a function to each cell;
x[i] = function(x[i]).
|
IntMatrix1D |
IntMatrix1D.assign(IntMatrix1D other)
Replaces all cell values of the receiver with the values of another
matrix.
|
IntMatrix1D |
IntMatrix1D.assign(IntMatrix1D y,
IntIntFunction function)
Assigns the result of a function to each cell;
x[i] = function(x[i],y[i]).
|
IntMatrix1D |
IntMatrix1D.assign(IntMatrix1D y,
IntIntFunction function,
IntArrayList nonZeroIndexes)
Assigns the result of a function to each cell;
x[i] = function(x[i],y[i]).
|
IntMatrix1D |
IntMatrix1D.assign(IntProcedure cond,
int value)
Assigns a value to all cells that satisfy a condition.
|
IntMatrix1D |
IntMatrix1D.assign(IntProcedure cond,
IntFunction f)
Assigns the result of a function to all cells that satisfy a condition.
|
IntMatrix1D |
IntMatrix1D.copy()
Constructs and returns a deep copy of the receiver.
|
IntMatrix1D |
IntFactory1D.descending(int size)
Constructs a matrix with cells having descending values.
|
IntMatrix1D |
IntFactory2D.diagonal(IntMatrix2D A)
Constructs a new vector consisting of the diagonal elements of A
.
|
IntMatrix1D |
IntMatrix1D.like()
Construct and returns a new empty matrix of the same dynamic type
as the receiver, having the same size.
|
abstract IntMatrix1D |
IntMatrix1D.like(int size)
Construct and returns a new empty matrix of the same dynamic type
as the receiver, having the specified size.
|
abstract IntMatrix1D |
IntMatrix2D.like1D(int size)
Construct and returns a new 1-d matrix of the corresponding dynamic
type, entirelly independent of the receiver.
|
IntMatrix1D |
IntFactory1D.make(AbstractIntList values)
Constructs a matrix from the values of the given list.
|
IntMatrix1D |
IntFactory1D.make(int size)
Constructs a matrix with the given shape, each cell initialized with
zero.
|
IntMatrix1D |
IntFactory1D.make(int[] values)
Constructs a matrix with the given cell values.
|
IntMatrix1D |
IntFactory1D.make(int size,
int initialValue)
Constructs a matrix with the given shape, each cell initialized with the
given value.
|
IntMatrix1D |
IntFactory1D.make(IntMatrix1D[] parts)
Constructs a matrix which is the concatenation of all given parts.
|
IntMatrix1D |
IntFactory1D.random(int size)
Constructs a matrix with uniformly distributed values in (0,1)
(exclusive).
|
IntMatrix1D |
IntFactory1D.repeat(IntMatrix1D A,
int repeat)
C = A||A||..||A; Constructs a new matrix which is concatenated
repeat times.
|
IntMatrix1D |
IntFactory1D.sample(int size,
int value,
int nonZeroFraction)
Constructs a randomly sampled matrix with the given shape.
|
abstract IntMatrix1D |
IntMatrix3D.vectorize()
Returns a vector obtained by stacking the columns of each slice of the
matrix on top of one another.
|
abstract IntMatrix1D |
IntMatrix2D.vectorize()
Returns a vector obtained by stacking the columns of the matrix on top of
one another.
|
IntMatrix1D |
IntMatrix2D.viewColumn(int column)
Constructs and returns a new slice view representing the rows of
the given column.
|
IntMatrix1D |
IntMatrix1D.viewFlip()
Constructs and returns a new flip view.
|
IntMatrix1D |
IntMatrix1D.viewPart(int index,
int width)
Constructs and returns a new sub-range view that is a
width sub matrix starting at index.
|
IntMatrix1D |
IntMatrix2D.viewRow(int row)
Constructs and returns a new slice view representing the columns
of the given row.
|
IntMatrix1D |
IntMatrix1D.viewSelection(int[] indexes)
Constructs and returns a new selection view that is a matrix
holding the indicated cells.
|
IntMatrix1D |
IntMatrix1D.viewSelection(IntProcedure condition)
Constructs and returns a new selection view that is a matrix
holding the cells matching the given condition.
|
IntMatrix1D |
IntMatrix1D.viewSorted()
Sorts the vector into ascending order, according to the natural
ordering.
|
IntMatrix1D |
IntMatrix1D.viewStrides(int stride)
Constructs and returns a new stride view which is a sub matrix
consisting of every i-th cell.
|
IntMatrix1D |
IntMatrix2D.zMult(IntMatrix1D y,
IntMatrix1D z)
Linear algebraic matrix-vector multiplication; z = A * y;
Equivalent to return A.zMult(y,z,1,0);
|
IntMatrix1D |
IntMatrix2D.zMult(IntMatrix1D y,
IntMatrix1D z,
int alpha,
int beta,
boolean transposeA)
Linear algebraic matrix-vector multiplication;
z = alpha * A * y + beta*z.
|
Modifier and Type | Method and Description |
---|---|
int |
IntMatrix1D.aggregate(IntMatrix1D other,
IntIntFunction aggr,
IntIntFunction f)
Applies a function to each corresponding cell of two matrices and
aggregates the results.
|
IntMatrix1D |
IntFactory1D.append(IntMatrix1D A,
IntMatrix1D B)
C = A||B; Constructs a new matrix which is the concatenation of two other
matrices.
|
IntMatrix2D |
IntFactory2D.appendColumn(IntMatrix2D A,
IntMatrix1D b) |
IntMatrix2D |
IntFactory2D.appendRow(IntMatrix2D A,
IntMatrix1D b) |
boolean |
IntMatrix1DProcedure.apply(IntMatrix1D element)
Applies a procedure to an argument.
|
IntMatrix1D |
IntMatrix1D.assign(IntMatrix1D other)
Replaces all cell values of the receiver with the values of another
matrix.
|
IntMatrix1D |
IntMatrix1D.assign(IntMatrix1D y,
IntIntFunction function)
Assigns the result of a function to each cell;
x[i] = function(x[i],y[i]).
|
IntMatrix1D |
IntMatrix1D.assign(IntMatrix1D y,
IntIntFunction function,
IntArrayList nonZeroIndexes)
Assigns the result of a function to each cell;
x[i] = function(x[i],y[i]).
|
IntMatrix2D |
IntFactory2D.diagonal(IntMatrix1D vector)
Constructs a new diagonal matrix whose diagonal elements are the elements
of vector.
|
IntMatrix1D |
IntFactory1D.make(IntMatrix1D[] parts)
Constructs a matrix which is the concatenation of all given parts.
|
IntMatrix1D |
IntFactory1D.repeat(IntMatrix1D A,
int repeat)
C = A||A||..||A; Constructs a new matrix which is concatenated
repeat times.
|
IntMatrix2D |
IntFactory2D.reshape(IntMatrix1D a,
int rows,
int columns) |
void |
IntMatrix1D.swap(IntMatrix1D other)
Swaps each element this[i] with other[i].
|
IntArrayList |
IntFactory1D.toList(IntMatrix1D values)
Constructs a list from the given matrix.
|
int |
IntMatrix1D.zDotProduct(IntMatrix1D y)
Returns the dot product of two vectors x and y, which is
Sum(x[i]*y[i]).
|
int |
IntMatrix1D.zDotProduct(IntMatrix1D y,
int from,
int length)
Returns the dot product of two vectors x and y, which is
Sum(x[i]*y[i]).
|
int |
IntMatrix1D.zDotProduct(IntMatrix1D y,
int from,
int length,
IntArrayList nonZeroIndexes)
Returns the dot product of two vectors x and y, which is
Sum(x[i]*y[i]).
|
IntMatrix1D |
IntMatrix2D.zMult(IntMatrix1D y,
IntMatrix1D z)
Linear algebraic matrix-vector multiplication; z = A * y;
Equivalent to return A.zMult(y,z,1,0);
|
IntMatrix1D |
IntMatrix2D.zMult(IntMatrix1D y,
IntMatrix1D z,
int alpha,
int beta,
boolean transposeA)
Linear algebraic matrix-vector multiplication;
z = alpha * A * y + beta*z.
|
Modifier and Type | Method and Description |
---|---|
IntMatrix1D |
IntSorting.sort(IntMatrix1D vector)
Sorts the vector into ascending order, according to the natural
ordering.
|
IntMatrix1D |
IntSorting.sort(IntMatrix1D vector,
IntComparator c)
Sorts the vector into ascending order, according to the order induced by
the specified comparator.
|
Modifier and Type | Method and Description |
---|---|
int |
IntMatrix1DComparator.compare(IntMatrix1D o1,
IntMatrix1D o2)
Compares its two arguments for order.
|
boolean |
IntProperty.equals(IntMatrix1D A,
int value)
Returns whether all cells of the given matrix A are equal to the
given value.
|
boolean |
IntProperty.equals(IntMatrix1D A,
IntMatrix1D B)
Returns whether both given matrices A and B are equal.
|
IntMatrix1D |
IntSorting.sort(IntMatrix1D vector)
Sorts the vector into ascending order, according to the natural
ordering.
|
IntMatrix1D |
IntSorting.sort(IntMatrix1D vector,
IntComparator c)
Sorts the vector into ascending order, according to the order induced by
the specified comparator.
|
int[] |
IntSorting.sortIndex(IntMatrix1D vector)
Sorts indexes of the
vector into ascending order. |
int[] |
IntSorting.sortIndex(IntMatrix1D vector,
IntComparator c)
Sorts indexes of the
vector according to the comparator
c . |
String |
IntFormatter.toSourceCode(IntMatrix1D matrix)
Returns a string s such that Object[] m = s is a legal
Java statement.
|
String |
IntFormatter.toString(IntMatrix1D matrix)
Returns a string representation of the given matrix.
|
Modifier and Type | Class and Description |
---|---|
class |
DenseIntMatrix1D
Dense 1-d matrix (aka vector) holding int elements.
|
class |
SparseIntMatrix1D
Sparse hashed 1-d matrix (aka vector) holding int elements.
|
class |
WrapperIntMatrix1D
1-d matrix holding int elements; either a view wrapping another
matrix or a matrix whose views are wrappers.
|
Modifier and Type | Method and Description |
---|---|
IntMatrix1D |
DenseIntMatrix1D.assign(int value) |
IntMatrix1D |
SparseIntMatrix1D.assign(int value)
Sets all cells to the state specified by value.
|
IntMatrix1D |
DenseIntMatrix1D.assign(int[] values) |
IntMatrix1D |
DenseIntMatrix1D.assign(IntFunction function) |
IntMatrix1D |
DenseIntMatrix1D.assign(IntMatrix1D source) |
IntMatrix1D |
DenseIntMatrix1D.assign(IntMatrix1D y,
IntIntFunction function) |
IntMatrix1D |
DenseIntMatrix1D.assign(IntProcedure cond,
int value) |
IntMatrix1D |
DenseIntMatrix1D.assign(IntProcedure cond,
IntFunction function) |
IntMatrix1D |
DenseIntMatrix1D.like(int size) |
IntMatrix1D |
WrapperIntMatrix1D.like(int size)
Construct and returns a new empty matrix of the same dynamic type
as the receiver, having the specified size.
|
IntMatrix1D |
SparseIntMatrix1D.like(int size)
Construct and returns a new empty matrix of the same dynamic type
as the receiver, having the specified size.
|
IntMatrix1D |
DiagonalIntMatrix2D.like1D(int size) |
IntMatrix1D |
DenseIntMatrix2D.like1D(int size) |
IntMatrix1D |
SparseRCIntMatrix2D.like1D(int size) |
IntMatrix1D |
DenseColumnIntMatrix2D.like1D(int size) |
IntMatrix1D |
DenseLargeIntMatrix2D.like1D(int size) |
IntMatrix1D |
SparseCCIntMatrix2D.like1D(int size) |
IntMatrix1D |
SparseIntMatrix2D.like1D(int size) |
IntMatrix1D |
WrapperIntMatrix2D.like1D(int size) |
IntMatrix1D |
DenseIntMatrix3D.vectorize() |
IntMatrix1D |
DenseIntMatrix2D.vectorize() |
IntMatrix1D |
DenseColumnIntMatrix2D.vectorize() |
IntMatrix1D |
WrapperIntMatrix3D.vectorize() |
IntMatrix1D |
SparseIntMatrix3D.vectorize() |
IntMatrix1D |
SparseIntMatrix2D.vectorize() |
IntMatrix1D |
WrapperIntMatrix2D.vectorize() |
IntMatrix1D |
WrapperIntMatrix2D.viewColumn(int column) |
IntMatrix1D |
WrapperIntMatrix1D.viewFlip()
Constructs and returns a new flip view.
|
IntMatrix1D |
WrapperIntMatrix1D.viewPart(int index,
int width)
Constructs and returns a new sub-range view that is a
width sub matrix starting at index.
|
IntMatrix1D |
WrapperIntMatrix2D.viewRow(int row) |
IntMatrix1D |
WrapperIntMatrix1D.viewSelection(int[] indexes)
Constructs and returns a new selection view that is a matrix
holding the indicated cells.
|
IntMatrix1D |
WrapperIntMatrix1D.viewStrides(int _stride)
Constructs and returns a new stride view which is a sub matrix
consisting of every i-th cell.
|
IntMatrix1D |
DiagonalIntMatrix2D.zMult(IntMatrix1D y,
IntMatrix1D z,
int alpha,
int beta,
boolean transposeA) |
IntMatrix1D |
DenseIntMatrix2D.zMult(IntMatrix1D y,
IntMatrix1D z,
int alpha,
int beta,
boolean transposeA) |
IntMatrix1D |
SparseRCIntMatrix2D.zMult(IntMatrix1D y,
IntMatrix1D z,
int alpha,
int beta,
boolean transposeA) |
IntMatrix1D |
SparseCCIntMatrix2D.zMult(IntMatrix1D y,
IntMatrix1D z,
int alpha,
int beta,
boolean transposeA) |
IntMatrix1D |
SparseIntMatrix2D.zMult(IntMatrix1D y,
IntMatrix1D z,
int alpha,
int beta,
boolean transposeA) |
Modifier and Type | Method and Description |
---|---|
int |
DenseIntMatrix1D.aggregate(IntMatrix1D other,
IntIntFunction aggr,
IntIntFunction f) |
IntMatrix1D |
DenseIntMatrix1D.assign(IntMatrix1D source) |
IntMatrix1D |
DenseIntMatrix1D.assign(IntMatrix1D y,
IntIntFunction function) |
void |
DenseIntMatrix1D.swap(IntMatrix1D other) |
int |
DenseIntMatrix1D.zDotProduct(IntMatrix1D y) |
int |
DenseIntMatrix1D.zDotProduct(IntMatrix1D y,
int from,
int length) |
IntMatrix1D |
DiagonalIntMatrix2D.zMult(IntMatrix1D y,
IntMatrix1D z,
int alpha,
int beta,
boolean transposeA) |
IntMatrix1D |
DenseIntMatrix2D.zMult(IntMatrix1D y,
IntMatrix1D z,
int alpha,
int beta,
boolean transposeA) |
IntMatrix1D |
SparseRCIntMatrix2D.zMult(IntMatrix1D y,
IntMatrix1D z,
int alpha,
int beta,
boolean transposeA) |
IntMatrix1D |
SparseCCIntMatrix2D.zMult(IntMatrix1D y,
IntMatrix1D z,
int alpha,
int beta,
boolean transposeA) |
IntMatrix1D |
SparseIntMatrix2D.zMult(IntMatrix1D y,
IntMatrix1D z,
int alpha,
int beta,
boolean transposeA) |
Constructor and Description |
---|
WrapperIntMatrix1D(IntMatrix1D newContent) |
Modifier and Type | Method and Description |
---|---|
static IntMatrix1D |
Utils.any(DoubleMatrix2D x) |
static IntMatrix1D |
Utils.append(IntMatrix1D x,
int a)
Appends a value to the given matrix.
|
static IntMatrix1D |
Utils.diff(IntMatrix1D x) |
static IntMatrix1D |
Utils.intm(DoubleMatrix1D d) |
static IntMatrix1D |
Utils.sub2ind(int rows,
int cols,
IntMatrix1D I,
IntMatrix1D J) |
static IntMatrix1D |
Utils.sub2ind(int rows,
int cols,
IntMatrix1D I,
IntMatrix1D J,
boolean row_major) |
Modifier and Type | Method and Description |
---|---|
static boolean |
Utils.all(IntMatrix1D x) |
static boolean |
Utils.any(IntMatrix1D x) |
static IntMatrix1D |
Utils.append(IntMatrix1D x,
int a)
Appends a value to the given matrix.
|
static DComplexMatrix1D |
Utils.cplxm(IntMatrix1D ix) |
static DoubleMatrix1D |
Utils.dblm(IntMatrix1D ix) |
static IntMatrix1D |
Utils.diff(IntMatrix1D x) |
static int[] |
Utils.nonzero(IntMatrix1D a) |
static IntMatrix1D |
Utils.sub2ind(int rows,
int cols,
IntMatrix1D I,
IntMatrix1D J) |
static IntMatrix1D |
Utils.sub2ind(int rows,
int cols,
IntMatrix1D I,
IntMatrix1D J,
boolean row_major) |
static IntMatrix2D |
Utils.unflatten(IntMatrix1D a) |
static IntMatrix2D |
Utils.unflatten(IntMatrix1D a,
boolean col) |
Jump to the Parallel Colt Homepage