public abstract class ColumnMajorSparseMatrix extends SparseMatrix
cardinality| Constructor and Description |
|---|
ColumnMajorSparseMatrix(int rows,
int columns) |
ColumnMajorSparseMatrix(int rows,
int columns,
int cardinality) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
apply(MatrixMatrixOperation<T> operation,
Matrix that)
Pipes this matrix to a given
operation. |
<T> T |
apply(MatrixOperation<T> operation)
Pipes this matrix to a given
operation. |
<T> T |
apply(MatrixVectorOperation<T> operation,
Vector that)
Pipes this matrix to a given
operation. |
static ColumnMajorSparseMatrix |
block(Matrix a,
Matrix b,
Matrix c,
Matrix d)
|
static ColumnMajorSparseMatrix |
diagonal(int size,
double diagonal)
Creates a diagonal
ColumnMajorSparseMatrix of the given size whose
diagonal elements are equal to diagonal. |
static ColumnMajorSparseMatrix |
from1DArray(int rows,
int columns,
double[] array)
Creates a new
ColumnMajorSparseMatrix from the given 1D array with
compressing (copying) the underlying array. |
static ColumnMajorSparseMatrix |
from2DArray(double[][] array)
Creates a new
ColumnMajorSparseMatrix from the given 2D array with
compressing (copying) the underlying array. |
static ColumnMajorSparseMatrix |
fromCSV(String csv)
Parses
ColumnMajorSparseMatrix from the given CSV string. |
static ColumnMajorSparseMatrix |
fromMatrixMarket(String mm)
Parses
ColumnMajorSparseMatrix from the given Matrix Market string. |
static ColumnMajorSparseMatrix |
identity(int size)
Creates an identity
ColumnMajorSparseMatrix of the given size. |
boolean |
isRowMajor()
Checks whether or not this sparse matrix row-major.
|
ColumnMajorMatrixIterator |
iterator()
Returns a matrix iterator.
|
abstract Iterator<Integer> |
iteratorOrNonZeroColumns() |
MatrixIterator |
nonZeroIterator()
Returns a non-zero matrix iterator.
|
static ColumnMajorSparseMatrix |
random(int rows,
int columns,
double density,
Random random)
|
static ColumnMajorSparseMatrix |
randomSymmetric(int size,
double density,
Random random)
Creates a random symmetric
ColumnMajorSparseMatrix of the given size. |
Matrix |
rotate()
Rotates this matrix by 90 degrees to the right.
|
Matrix |
transpose()
Transposes this matrix.
|
static ColumnMajorSparseMatrix |
zero(int rows,
int columns)
|
static ColumnMajorSparseMatrix |
zero(int rows,
int columns,
int capacity)
|
add, capacity, cardinality, density, eachNonZero, eachNonZeroInColumn, eachNonZeroInRow, ensureCardinalityIsCorrect, foldNonZero, foldNonZeroInColumn, foldNonZeroInColumns, foldNonZeroInRow, foldNonZeroInRows, get, getColumn, getOrElse, getRow, isColumnMajor, isZeroAt, multiply, nonZeroAt, nonZeroColumnMajorIterator, nonZeroIteratorOfColumn, nonZeroIteratorOfRow, nonZeroRowMajorIterator, toMatrixMarketadd, blank, blankOfColumns, blankOfRows, blankOfShape, columnMajorIterator, columns, constant, copy, copyOfColumns, copyOfRows, copyOfShape, determinant, diagonalProduct, divide, each, eachInColumn, eachInRow, ensureDimensionsAreCorrect, ensureIndexesAreInBounds, equals, equals, euclideanNorm, fail, fold, foldColumn, foldColumns, foldRow, foldRows, hadamardProduct, hashCode, infinityNorm, insert, insert, insert, insert, insertColumn, insertRow, is, is, iteratorOfColumn, iteratorOfRow, kroneckerProduct, manhattanNorm, max, maxInColumn, maxInRow, min, minInColumn, minInRow, mkString, mkString, mkString, multiply, multiply, multiplyByItsTranspose, non, non, norm, power, product, random, randomSymmetric, rank, removeColumn, removeFirstColumn, removeFirstRow, removeLastColumn, removeLastRow, removeRow, rowMajorIterator, rows, select, set, setAll, setColumn, setColumn, setRow, setRow, shuffle, slice, sliceBottomRight, sliceTopLeft, subtract, subtract, sum, swapColumns, swapRows, to, toBinary, toColumnMajorSparseMatrix, toColumnVector, toCSV, toCSV, toDenseMatrix, toMatrixMarket, toRowMajorSparseMatrix, toRowVector, toSparseMatrix, toString, trace, transform, transformColumn, transformRow, unit, update, updateAt, updateColumn, updateRow, withDecompositor, withInverter, withSolverpublic ColumnMajorSparseMatrix(int rows,
int columns)
public ColumnMajorSparseMatrix(int rows,
int columns,
int cardinality)
public static ColumnMajorSparseMatrix zero(int rows, int columns)
public static ColumnMajorSparseMatrix zero(int rows, int columns, int capacity)
public static ColumnMajorSparseMatrix diagonal(int size, double diagonal)
ColumnMajorSparseMatrix of the given size whose
diagonal elements are equal to diagonal.public static ColumnMajorSparseMatrix identity(int size)
ColumnMajorSparseMatrix of the given size.public static ColumnMajorSparseMatrix random(int rows, int columns, double density, Random random)
public static ColumnMajorSparseMatrix randomSymmetric(int size, double density, Random random)
ColumnMajorSparseMatrix of the given size.public static ColumnMajorSparseMatrix from1DArray(int rows, int columns, double[] array)
ColumnMajorSparseMatrix from the given 1D array with
compressing (copying) the underlying array.public static ColumnMajorSparseMatrix from2DArray(double[][] array)
ColumnMajorSparseMatrix from the given 2D array with
compressing (copying) the underlying array.public static ColumnMajorSparseMatrix block(Matrix a, Matrix b, Matrix c, Matrix d)
public static ColumnMajorSparseMatrix fromCSV(String csv)
ColumnMajorSparseMatrix from the given CSV string.csv - the CSV string representing a matrixpublic static ColumnMajorSparseMatrix fromMatrixMarket(String mm)
ColumnMajorSparseMatrix from the given Matrix Market string.mm - the string in Matrix Market formatpublic boolean isRowMajor()
SparseMatrixisRowMajor in class SparseMatrixpublic Matrix rotate()
Matrixpublic ColumnMajorMatrixIterator iterator()
Matrixpublic MatrixIterator nonZeroIterator()
SparseMatrixnonZeroIterator in class SparseMatrixpublic <T> T apply(MatrixOperation<T> operation)
Matrixoperation.public <T> T apply(MatrixMatrixOperation<T> operation, Matrix that)
Matrixoperation.public <T> T apply(MatrixVectorOperation<T> operation, Vector that)
Matrixoperation.Copyright © 2015. All rights reserved.