Example #1
0
 /// <summary>
 /// Copies the values of a given matrix into a region in this matrix.
 /// </summary>
 /// <param name="rowIndex">The row to start copying to.</param>
 /// <param name="rowCount">The number of rows to copy. Must be positive.</param>
 /// <param name="columnIndex">The column to start copying to.</param>
 /// <param name="columnCount">The number of columns to copy. Must be positive.</param>
 /// <param name="subMatrix">The sub-matrix to copy from.</param>
 public void SetSubMatrix(int rowIndex, int rowCount, int columnIndex, int columnCount, DenseColumnMajorStorage <T> subMatrix)
 {
     subMatrix.CopySubMatrixTo(this, 0, rowIndex, rowCount, 0, columnIndex, columnCount);
 }
Example #2
0
 /// <summary>
 /// Dense matrix multiplication, C = A*B
 /// </summary>
 /// <param name="other">The dense matrix multiplied to this instance.</param>
 /// <param name="result">The product matrix.</param>
 /// <param name="options">Parallel options (optional).</param>
 public virtual void ParallelMultiply(DenseColumnMajorStorage <T> other, DenseColumnMajorStorage <T> result, System.Threading.Tasks.ParallelOptions options = null)
 {
     Multiply(other, result);
 }
Example #3
0
 /// <summary>
 /// Pointwise multiplies this matrix with another matrix and stores the result into the result matrix.
 /// </summary>
 /// <param name="other">The matrix to pointwise multiply with this one.</param>
 /// <param name="result">The matrix to store the result of the pointwise multiplication.</param>
 public abstract void PointwiseMultiply(DenseColumnMajorStorage <T> other, DenseColumnMajorStorage <T> result);
Example #4
0
 /// <summary>
 /// Adds two dense matrices, C = A + B.
 /// </summary>
 /// <param name="other">The matrix added to this instance.</param>
 /// <param name="result">Contains the sum.</param>
 public abstract void Add(DenseColumnMajorStorage <T> other, DenseColumnMajorStorage <T> result);