List of usage examples for org.apache.commons.math3.linear AbstractRealMatrix getColumnDimension
@Override public abstract int getColumnDimension();
From source file:com.clust4j.utils.MatUtils.java
final static public void checkDims(final AbstractRealMatrix a, final AbstractRealMatrix b) { checkDims(a);/* www .j a v a2 s . c o m*/ checkDims(b); int m1 = a.getRowDimension(), m2 = b.getRowDimension(); int n1 = a.getColumnDimension(), n2 = b.getColumnDimension(); if (m1 != m2) throw new DimensionMismatchException(m1, m2); if (n1 != n2) throw new DimensionMismatchException(n1, n2); }