Package cern.colt.matrix.impl

Examples of cern.colt.matrix.impl.SparseObjectMatrix2D


*
* @param values The values to be filled into the new matrix.
* @throws IllegalArgumentException if <tt>for any 1 &lt;= row &lt; values.length: values[row].length != values[row-1].length</tt>.
*/
public ObjectMatrix2D make(Object[][] values) {
  if (this==sparse) return new SparseObjectMatrix2D(values);
  else return new DenseObjectMatrix2D(values);
}
View Full Code Here


}
/**
* Constructs a matrix with the given shape, each cell initialized with zero.
*/
public ObjectMatrix2D make(int rows, int columns) {
  if (this==sparse) return new SparseObjectMatrix2D(rows,columns);
  else return new DenseObjectMatrix2D(rows,columns);
}
View Full Code Here

*
* @param values The values to be filled into the new matrix.
* @throws IllegalArgumentException if <tt>for any 1 &lt;= row &lt; values.length: values[row].length != values[row-1].length</tt>.
*/
public ObjectMatrix2D make(Object[][] values) {
  if (this==sparse) return new SparseObjectMatrix2D(values);
  else return new DenseObjectMatrix2D(values);
}
View Full Code Here

}
/**
* Constructs a matrix with the given shape, each cell initialized with zero.
*/
public ObjectMatrix2D make(int rows, int columns) {
  if (this==sparse) return new SparseObjectMatrix2D(rows,columns);
  else return new DenseObjectMatrix2D(rows,columns);
}
View Full Code Here

TOP

Related Classes of cern.colt.matrix.impl.SparseObjectMatrix2D

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.