SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.matrix
Interface MatrixDimension

All Known Subinterfaces:
Matrix, Matrix<T,F>, SparseMatrix
All Known Implementing Classes:
BidiagonalMatrix, BorderedHessian, ComplexMatrix, CovarianceMatrix, CsrSparseMatrix, DenseMatrix, DiagonalMatrix, DokSparseMatrix, GenericMatrix, GivensMatrix, GoldfeldQuandtTrotter, Gradient, Hessian, HilbertMatrix, ImmutableKroneckerProduct, ImmutableMatrix, Inverse, Jacobian, JordanExchange, KroneckerProduct, LilSparseMatrix, LowerTriangularMatrix, MatrixMathImpl, MatrixStorageImpl, MatthewsDavies, PermutationMatrix, Pow, PseudoInverse, RealMatrix, SubMatrixRef, SymmetricMatrix, TriangularMatrix, TridiagonalMatrix, UpperTriangularMatrix

public interface MatrixDimension

A matrix is a rectangular arrangement of numbers. Its dimension is defined by the number of rows and columns the matrix has.

We do not dictate how a matrix should be implemented. Different implementations of the mathematical concept 'matrix' implements this interface.

This interface is made minimal so that we do not list all possible matrix operations. Instead, matrix operations are grouped into packages and classes by their properties. This is to avoid interface "pollution", lengthy and cumbersome design.

See Also:
Wikipedia: Matrix (mathematics)

Method Summary
 int nCols()
          Get the number of columns.
 int nRows()
          Get the number of rows.
 

Method Detail

nRows

int nRows()
Get the number of rows. Rows count from 1.

Returns:
the number of rows

nCols

int nCols()
Get the number of columns. Columns count from 1.

Returns:
the number of columns

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.