SparseLinearAlgebraOperations<T>.MultiplyAndAddInPlace Method

Definition

Namespace: Extreme.Mathematics.LinearAlgebra.Implementation
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

MultiplyAndAddInPlace(TransposeOperation, Int32, Int32, T, MatrixStructure, MatrixTriangle, MatrixDiagonal, T[], Int32[], Int32[], Int32[], ArraySlice<T>, T, ArraySlice<T>)

Multiplies a dense vector by a sparse matrix in Compressed Sparse Column (CSC) format.
C#
public abstract void MultiplyAndAddInPlace(
	TransposeOperation transA,
	int m,
	int k,
	T alpha,
	MatrixStructure structure,
	MatrixTriangle storedTriangle,
	MatrixDiagonal matrixDiagonal,
	T[] a,
	int[] aRows,
	int[] aPointerB,
	int[] aPointerE,
	ArraySlice<T> x,
	T beta,
	ArraySlice<T> y
)

Parameters

transA  TransposeOperation
Specifies the operation to be performed on the matrix a.
m  Int32
The number of rows in the matrix a.
k  Int32
The number of columns in the matrix a.
alpha  T
The scalar used to multiply the matrix-vector product.
structure  MatrixStructure
A MatrixStructure value that specifies the structure of the matrix.
storedTriangle  MatrixTriangle
A MatrixTriangle value that specifies whether the matrix is upper or lower triangular.
matrixDiagonal  MatrixDiagonal
A MatrixDiagonal value that indicates whether the diagonal elements are all 1 or not.
a  T[]
Reference to the first element in a one-dimensional array that contains the elements of the matrix.
aRows  Int32[]
Integer array that contains the 1-based row indices of the corresponding elements of a.
aPointerB  Int32[]
Integer array of length m containing the 1-based indices into a of the first component of each column.
aPointerE  Int32[]
Integer array of length m containing the 1-based indices into a of the first component of each column.
x  ArraySlice<T>
A reference to a one-dimensional array containing the elements of the vector x.
beta  T
The scalar used to multiply y.
y  ArraySlice<T>
A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.

Implements

ISparseLinearAlgebraOperations<T>.MultiplyAndAddInPlace(TransposeOperation, Int32, Int32, T, MatrixStructure, MatrixTriangle, MatrixDiagonal, T[], Int32[], Int32[], Int32[], ArraySlice<T>, T, ArraySlice<T>)

MultiplyAndAddInPlace(TransposeOperation, Int32, Int32, Complex<T>, MatrixStructure, MatrixTriangle, MatrixDiagonal, Complex<T>[], Int32[], Int32[], Int32[], ArraySlice<Complex<T>>, Complex<T>, ArraySlice<Complex<T>>)

Multiplies a dense vector by a sparse matrix in compressed sparse column format.
C#
public abstract void MultiplyAndAddInPlace(
	TransposeOperation transA,
	int m,
	int k,
	Complex<T> alpha,
	MatrixStructure structure,
	MatrixTriangle storedTriangle,
	MatrixDiagonal matrixDiagonal,
	Complex<T>[] a,
	int[] aRows,
	int[] aPointerB,
	int[] aPointerE,
	ArraySlice<Complex<T>> x,
	Complex<T> beta,
	ArraySlice<Complex<T>> y
)

Parameters

transA  TransposeOperation
Specifies the operation to be performed on the matrix a.
m  Int32
The number of rows in the matrix a.
k  Int32
The number of columns in the matrix a.
alpha  Complex<T>
The scalar used to multiply the matrix-vector product.
structure  MatrixStructure
A MatrixStructure value that specifies the structure of the matrix.
storedTriangle  MatrixTriangle
A MatrixTriangle value that specifies whether the matrix is upper or lower triangular.
matrixDiagonal  MatrixDiagonal
A MatrixDiagonal value that indicates whether the diagonal elements are all 1 or not.
a  Complex<T>[]
Reference to the first element in a one-dimensional array that contains the elements of the matrix.
aRows  Int32[]
Integer array that contains the 1-based row indices of the corresponding elements of a.
aPointerB  Int32[]
Integer array of length m containing the 1-based indices into a of the first component of each column.
aPointerE  Int32[]
Integer array of length m containing the 1-based indices into a of the first component of each column.
x  ArraySlice<Complex<T>>
A reference to a one-dimensional array containing the elements of the vector x.
beta  Complex<T>
The scalar used to multiply y.
y  ArraySlice<Complex<T>>
A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.

Implements

ISparseLinearAlgebraOperations<T>.MultiplyAndAddInPlace(TransposeOperation, Int32, Int32, T, MatrixStructure, MatrixTriangle, MatrixDiagonal, T[], Int32[], Int32[], Int32[], ArraySlice<T>, T, ArraySlice<T>)

MultiplyAndAddInPlace(TransposeOperation, Int32, Int32, Int32, T, MatrixStructure, MatrixTriangle, MatrixDiagonal, T[], Int32[], Int32[], Int32[], Array2D<T>, T, Array2D<T>)

Multiplies a dense matrix by a sparse matrix in Compressed Sparse Column (CSC) format.
C#
public abstract void MultiplyAndAddInPlace(
	TransposeOperation transA,
	int m,
	int n,
	int k,
	T alpha,
	MatrixStructure structure,
	MatrixTriangle storedTriangle,
	MatrixDiagonal matrixDiagonal,
	T[] a,
	int[] aRows,
	int[] aPointerB,
	int[] aPointerE,
	Array2D<T> b,
	T beta,
	Array2D<T> c
)

Parameters

transA  TransposeOperation
Specifies the operation to be performed on the matrix a.
m  Int32
The number of rows in the matrix a.
n  Int32
The number of columns in the matrix c.
k  Int32
The number of columns in the matrix a.
alpha  T
The scalar used to multiply the matrix-matrix product.
structure  MatrixStructure
A MatrixStructure value that specifies the structure of the matrix.
storedTriangle  MatrixTriangle
A MatrixTriangle value that specifies whether the matrix is upper or lower triangular.
matrixDiagonal  MatrixDiagonal
A MatrixDiagonal value that indicates whether the diagonal elements are all 1 or not.
a  T[]
Reference to the first element in a one-dimensional array that contains the elements of the matrix.
aRows  Int32[]
Integer array that contains the 1-based row indices of the corresponding elements of a.
aPointerB  Int32[]
Integer array of length n containing the 1-based indices into a of the first component of each column.
aPointerE  Int32[]
Integer array of length n containing the 1-based indices into a of the first component of each column.
b  Array2D<T>
A reference to a one-dimensional array containing the elements of the matrix b.
beta  T
The scalar used to multiply c.
c  Array2D<T>
A reference to a one-dimensional array containing the elements of the matrix c. The elements of c are overwritten with the result.

Implements

ISparseLinearAlgebraOperations<T>.MultiplyAndAddInPlace(TransposeOperation, Int32, Int32, Int32, T, MatrixStructure, MatrixTriangle, MatrixDiagonal, T[], Int32[], Int32[], Int32[], Array2D<T>, T, Array2D<T>)

MultiplyAndAddInPlace(TransposeOperation, Int32, Int32, Int32, Complex<T>, MatrixStructure, MatrixTriangle, MatrixDiagonal, Complex<T>[], Int32[], Int32[], Int32[], Array2D<Complex<T>>, Complex<T>, Array2D<Complex<T>>)

Multiplies a dense matrix by a sparse matrix in Compressed Sparse Column (CSC) format.
C#
public abstract void MultiplyAndAddInPlace(
	TransposeOperation transA,
	int m,
	int n,
	int k,
	Complex<T> alpha,
	MatrixStructure structure,
	MatrixTriangle storedTriangle,
	MatrixDiagonal matrixDiagonal,
	Complex<T>[] a,
	int[] aRows,
	int[] aPointerB,
	int[] aPointerE,
	Array2D<Complex<T>> b,
	Complex<T> beta,
	Array2D<Complex<T>> c
)

Parameters

transA  TransposeOperation
Specifies the operation to be performed on the matrix a.
m  Int32
The number of rows in the matrix a.
n  Int32
The number of columns in the matrix c.
k  Int32
The number of columns in the matrix a.
alpha  Complex<T>
The scalar used to multiply the matrix-matrix product.
structure  MatrixStructure
A MatrixStructure value that specifies the structure of the matrix.
storedTriangle  MatrixTriangle
A MatrixTriangle value that specifies whether the matrix is upper or lower triangular.
matrixDiagonal  MatrixDiagonal
A MatrixDiagonal value that indicates whether the diagonal elements are all 1 or not.
a  Complex<T>[]
Reference to the first element in a one-dimensional array that contains the elements of the matrix.
aRows  Int32[]
Integer array that contains the 1-based row indices of the corresponding elements of a.
aPointerB  Int32[]
Integer array of length n containing the 1-based indices into a of the first component of each column.
aPointerE  Int32[]
Integer array of length n containing the 1-based indices into a of the first component of each column.
b  Array2D<Complex<T>>
A reference to a one-dimensional array containing the elements of the matrix b.
beta  Complex<T>
The scalar used to multiply c.
c  Array2D<Complex<T>>
A reference to a one-dimensional array containing the elements of the matrix c. The elements of c are overwritten with the result.

Implements

ISparseLinearAlgebraOperations<T>.MultiplyAndAddInPlace(TransposeOperation, Int32, Int32, Int32, T, MatrixStructure, MatrixTriangle, MatrixDiagonal, T[], Int32[], Int32[], Int32[], Array2D<T>, T, Array2D<T>)

See Also