Exemplo n.º 1
0
 /// <summary>
 /// A = -A <=> A[row,col] = -A[row,col]
 /// </summary>
 /// <param name="A"></param>
 /// <returns><i>A</i> (for convenience only).</returns>
 public static DoubleMatrix2D Negate(DoubleMatrix2D A)
 {
     return A.Assign(F1.Mult(-1));
 }
Exemplo n.º 2
0
 /// <summary>
 /// A = A * s <=> A[row,col] = A[row,col] * s
 /// </summary>
 /// <param name="A">the matrix to modify.</param>
 /// <param name="s">the scalar; can have any value.</param>
 /// <returns><i>A</i> (for convenience only).</returns>
 public static DoubleMatrix2D Mult(DoubleMatrix2D A, double s)
 {
     return A.Assign(F1.Mult(s));
 }