Package mikera.vectorz

Examples of mikera.vectorz.AVector.exactClone()


  public SparseColumnMatrix exactClone() {
    SparseColumnMatrix result= new SparseColumnMatrix(rows,cols);
        for (int i = 0; i < cols; ++i) {
      AVector col = unsafeGetVec(i);
      if (col != null)
          result.replaceColumn(i, col.exactClone());
    }
    return result;
  }
 
  @Override
View Full Code Here


  public SparseRowMatrix exactClone() {
    SparseRowMatrix result = new SparseRowMatrix(rows, cols);
        for (int i = 0; i < rows; ++i) {
      AVector row = unsafeGetVec(i);
      if (row != null)
                result.replaceRow(i, row.exactClone());
    }
    return result;
  }
 
  @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.