Package cern.colt.matrix.impl

Examples of cern.colt.matrix.impl.SparseObjectMatrix3D


* @return <tt>this</tt> (for convenience only).
* @throws IllegalArgumentException if <tt>values.length != slices() || for any 0 &lt;= slice &lt; slices(): values[slice].length != rows()</tt>.
* @throws IllegalArgumentException if <tt>for any 0 &lt;= column &lt; columns(): values[slice][row].length != columns()</tt>.
*/
public ObjectMatrix3D make(Object[][][] values) {
  if (this==sparse) return new SparseObjectMatrix3D(values);
  return new DenseObjectMatrix3D(values);
}
View Full Code Here


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

* @return <tt>this</tt> (for convenience only).
* @throws IllegalArgumentException if <tt>values.length != slices() || for any 0 &lt;= slice &lt; slices(): values[slice].length != rows()</tt>.
* @throws IllegalArgumentException if <tt>for any 0 &lt;= column &lt; columns(): values[slice][row].length != columns()</tt>.
*/
public ObjectMatrix3D make(Object[][][] values) {
  if (this==sparse) return new SparseObjectMatrix3D(values);
  return new DenseObjectMatrix3D(values);
}
View Full Code Here

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

TOP

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

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.