Class CompressedColumn
Class defining a sparse matrix with a compressed column storage.
Implements
Inherited Members
Namespace: BRIDGES.LinearAlgebra.Matrices.Sparse
Assembly: BRIDGES.dll
Syntax
public sealed class CompressedColumn : SparseMatrix, IGroupAction<Matrix, double>, IGroupAction<SparseMatrix, double>, IGroupAction<CompressedColumn, double>
Constructors
| Improve this Doc View SourceCompressedColumn(CompressedColumn)
Initialises a new instance of the CompressedColumn class from another CompressedColumn.
Declaration
public CompressedColumn(CompressedColumn ccs)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | ccs | CompressedColumn to deep copy. |
CompressedColumn(Int32, Int32, DictionaryOfKeys)
Initialises a new instance of the CompressedColumn class by defining its size, and by giving its values in a DictionaryOfKeys.
Declaration
public CompressedColumn(int rowCount, int columnCount, DictionaryOfKeys dok)
Parameters
Type | Name | Description |
---|---|---|
Int32 | rowCount | Number of rows of the CompressedColumn. |
Int32 | columnCount | Number of columns of the CompressedColumn. |
DictionaryOfKeys | dok | Values of the CompressedColumn. |
Properties
| Improve this Doc View SourceColumnCount
Gets the number of columns in this matrix.
Declaration
public override int ColumnCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
Overrides
| Improve this Doc View SourceItem[Int32]
Gets or sets the non-zero value of this sparse matrix at a given index.
Declaration
public override double this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | Index of the non-zero value to get. |
Property Value
Type | Description |
---|---|
Double | The non-zero value of this sparse matrix at the given index. |
Overrides
| Improve this Doc View SourceNonZerosCount
Gets the number of non-zero values in this sparse matrix.
Declaration
public override int NonZerosCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
Overrides
| Improve this Doc View SourceRowCount
Gets the number of rows in this matrix.
Declaration
public override int RowCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
Overrides
Methods
| Improve this Doc View SourceAdd(CompressedColumn, DenseMatrix)
Computes the right addition of a CompressedColumn with a DenseMatrix.
Declaration
public static DenseMatrix Add(CompressedColumn left, DenseMatrix right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn for the addition. |
DenseMatrix | right | Right DenseMatrix for the addition. |
Returns
Type | Description |
---|---|
DenseMatrix | The new DenseMatrix resulting from the addition. |
Add(CompressedColumn, Matrix)
Computes the right addition of a CompressedColumn with a Matrix on the right.
Declaration
public static Matrix Add(CompressedColumn left, Matrix right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn for the addition. |
Matrix | right | Right Matrix for the addition. |
Returns
Type | Description |
---|---|
Matrix | The new Matrix resulting from the addition. |
Add(CompressedColumn, CompressedColumn)
Computes the addition of two CompressedColumn.
Declaration
public static CompressedColumn Add(CompressedColumn left, CompressedColumn right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn for the addition. |
CompressedColumn | right | Right CompressedColumn for the addition. |
Returns
Type | Description |
---|---|
CompressedColumn | The CompressedColumn resulting from the addition. |
Add(CompressedColumn, CompressedRow)
Computes the right addition of a CompressedColumn with a CompressedRow.
Declaration
public static CompressedColumn Add(CompressedColumn left, CompressedRow right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn for the addition. |
CompressedRow | right | Right CompressedRow for the addition. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the addition. |
Add(CompressedColumn, SparseMatrix)
Computes the right addition of a CompressedColumn with a SparseMatrix.
Declaration
public static CompressedColumn Add(CompressedColumn left, SparseMatrix right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn for the addition. |
SparseMatrix | right | Right SparseMatrix for the addition. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the addition. |
Add(CompressedRow, CompressedColumn)
Computes left the addition of a CompressedColumn with a CompressedRow.
Declaration
public static CompressedColumn Add(CompressedRow left, CompressedColumn right)
Parameters
Type | Name | Description |
---|---|---|
CompressedRow | left | Left CompressedRow for the addition. |
CompressedColumn | right | Right CompressedColumn for the addition. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the addition. |
Add(SparseMatrix, CompressedColumn)
Computes the left addition of a CompressedColumn with a SparseMatrix.
Declaration
public static CompressedColumn Add(SparseMatrix left, CompressedColumn right)
Parameters
Type | Name | Description |
---|---|---|
SparseMatrix | left | Left SparseMatrix for the addition. |
CompressedColumn | right | Right CompressedColumn for the addition. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the addition. |
At(Int32, Int32)
Get the value of the matrix at the given row and column index.
Declaration
public override double At(int row, int column)
Parameters
Type | Name | Description |
---|---|---|
Int32 | row | Row index of the value to get. |
Int32 | column | Column index of the value to get. |
Returns
Type | Description |
---|---|
Double | The value at the given row and column index. |
Overrides
| Improve this Doc View SourceColumnPointer(Int32)
Returns the column pointer at agiven index.
Declaration
public int ColumnPointer(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | Index of the column pointers to get. |
Returns
Type | Description |
---|---|
Int32 | The column pointers of this CompressedColumn sparse matrix. |
Divide(CompressedColumn, Double)
Computes the scalar division of a CompressedColumn with a
Declaration
public static CompressedColumn Divide(CompressedColumn operand, double divisor)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | operand | CompressedColumn to divide. |
Double | divisor |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the scalar division. |
Identity(Int32)
Returns the neutral CompressedColumn for the multiplication.
Declaration
public static CompressedColumn Identity(int size)
Parameters
Type | Name | Description |
---|---|---|
Int32 | size | Number of rows and columns of the CompressedColumn. |
Returns
Type | Description |
---|---|
CompressedColumn | The CompressedColumn of the given size, with ones on the diagonal and zeros elsewhere. |
Kernel()
Computes the kernel (or null-space) of the current SparseMatrix using the QR decomposition.
Declaration
public DenseVector[] Kernel()
Returns
Type | Description |
---|---|
DenseVector[] | The vectors forming a basis of the null-space. |
Remarks
The method is adapted for rectangular matrix.
Multiply(CompressedColumn, DenseMatrix)
Computes the right multiplication of a CompressedColumn with a DenseMatrix.
Declaration
public static DenseMatrix Multiply(CompressedColumn left, DenseMatrix right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn for the multiplication. |
DenseMatrix | right | Right DenseMatrix for the multiplication. |
Returns
Type | Description |
---|---|
DenseMatrix | The new DenseMatrix resulting from the multiplication. |
Multiply(CompressedColumn, Matrix)
Computes the right multiplication of a CompressedColumn with a Matrix.
Declaration
public static Matrix Multiply(CompressedColumn left, Matrix right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn for the multiplication. |
Matrix | right | Right Matrix for the multiplication. |
Returns
Type | Description |
---|---|
Matrix | The new Matrix resulting from the multiplication. |
Multiply(CompressedColumn, CompressedColumn)
Computes the multiplication of two CompressedColumn.
Declaration
public static CompressedColumn Multiply(CompressedColumn left, CompressedColumn right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn for the multiplication. |
CompressedColumn | right | Right CompressedColumn for the multiplication. |
Returns
Type | Description |
---|---|
CompressedColumn | The CompressedColumn resulting from the multiplication. |
Multiply(CompressedColumn, CompressedRow)
Computes the right multiplication of a CompressedColumn with a CompressedRow.
Declaration
public static CompressedColumn Multiply(CompressedColumn left, CompressedRow right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn for the multiplication. |
CompressedRow | right | Right CompressedRow for the multiplication. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the multiplication. |
Multiply(CompressedColumn, SparseMatrix)
Computes the right multiplication of a CompressedColumn with a SparseMatrix.
Declaration
public static CompressedColumn Multiply(CompressedColumn left, SparseMatrix right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn for the multiplication. |
SparseMatrix | right | Right SparseMatrix for the multiplication. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the multiplication. |
Multiply(CompressedColumn, DenseVector)
Computes the right multiplication of a CompressedRow with a DenseVector : A*V
.
Declaration
public static DenseVector Multiply(CompressedColumn matrix, DenseVector vector)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | matrix | CompressedRow to multiply on the right. |
DenseVector | vector | DenseVector to multiply with. |
Returns
Type | Description |
---|---|
DenseVector | The new DenseVector resulting from the multiplication. |
Multiply(CompressedColumn, SparseVector)
Computes the right multiplication of a CompressedRow with a SparseVector : A*V
.
Declaration
public static SparseVector Multiply(CompressedColumn matrix, SparseVector vector)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | matrix | CompressedRow to multiply on the right. |
SparseVector | vector | SparseVector to multiply with. |
Returns
Type | Description |
---|---|
SparseVector | The new DenseVector resulting from the multiplication. |
Multiply(CompressedColumn, Vector)
Computes the right multiplication of a CompressedRow with a Vector : A*V
.
Declaration
public static Vector Multiply(CompressedColumn matrix, Vector vector)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | matrix | CompressedRow to multiply on the right. |
Vector | vector | Vector to multiply with. |
Returns
Type | Description |
---|---|
Vector | The new Vector resulting from the multiplication. |
Multiply(CompressedColumn, Double)
Computes the right scalar multiplication of a CompressedColumn with a
Declaration
public static CompressedColumn Multiply(CompressedColumn operand, double factor)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | operand | CompressedColumn to multiply on the right. |
Double | factor |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the right scalar multiplication. |
Multiply(CompressedRow, CompressedColumn)
Computes the left multiplication of a CompressedColumn with a CompressedRow.
Declaration
public static CompressedColumn Multiply(CompressedRow left, CompressedColumn right)
Parameters
Type | Name | Description |
---|---|---|
CompressedRow | left | Left CompressedRow for the multiplication. |
CompressedColumn | right | Right CompressedColumn for the multiplication. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the multiplication. |
Multiply(SparseMatrix, CompressedColumn)
Computes the left multiplication of a CompressedColumn with a SparseMatrix.
Declaration
public static CompressedColumn Multiply(SparseMatrix left, CompressedColumn right)
Parameters
Type | Name | Description |
---|---|---|
SparseMatrix | left | Left SparseMatrix for the multiplication. |
CompressedColumn | right | Right CompressedColumn for the multiplication. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the multiplication. |
Multiply(Double, CompressedColumn)
Computes the left scalar multiplication of a CompressedColumn with a
Declaration
public static CompressedColumn Multiply(double factor, CompressedColumn operand)
Parameters
Type | Name | Description |
---|---|---|
Double | factor | |
CompressedColumn | operand | CompressedColumn to multiply on the left. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the left scalar multiplication. |
NonZero(Int32)
Returns the non-zero value at a given index.
Declaration
public double NonZero(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | Index of the non-zero value to get. |
Returns
Type | Description |
---|---|
Double | The non-zero value of this CompressedColumn sparse matrix at the given index. |
NonZeros()
Provides an enumerable collection to iterate on the non-zero entries of the SparseMatrix non-zero entries.
Declaration
public override IEnumerable<(int rowIndex, int columnIndex, double value)> NonZeros()
Returns
Type | Description |
---|---|
IEnumerable<(, , )<Int32, Int32, Double>> | The enumerable collection containing row index, the column index and the value of the SparseMatrix non-zero entries. |
Overrides
| Improve this Doc View SourceRowIndex(Int32)
Returns the row index of a non zero value at a given index.
Declaration
public int RowIndex(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | Index of the non-zero value whose row index to get. |
Returns
Type | Description |
---|---|
Int32 | The row index of this CompressedColumn sparse matrix at the given index. |
SolveCholesky(Vector)
Solve the system A·x=y
using Cholesky decomposition.
Declaration
public DenseVector SolveCholesky(Vector vector)
Parameters
Type | Name | Description |
---|---|---|
Vector | vector | The vector y in the system. |
Returns
Type | Description |
---|---|
DenseVector | The vector x in the system. |
Subtract(CompressedColumn, DenseMatrix)
Computes the right subtraction of a CompressedColumn with a DenseMatrix.
Declaration
public static DenseMatrix Subtract(CompressedColumn left, DenseMatrix right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn to subtract. |
DenseMatrix | right | Right DenseMatrix to subtract with. |
Returns
Type | Description |
---|---|
DenseMatrix | The new DenseMatrix resulting from the subtraction. |
Subtract(CompressedColumn, Matrix)
Computes the right subtraction of a CompressedColumn with a Matrix.
Declaration
public static Matrix Subtract(CompressedColumn left, Matrix right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn to subtract. |
Matrix | right | Right Matrix to subtract with. |
Returns
Type | Description |
---|---|
Matrix | The new Matrix resulting from the subtraction. |
Subtract(CompressedColumn, CompressedColumn)
Computes the subtraction of two CompressedColumn.
Declaration
public static CompressedColumn Subtract(CompressedColumn left, CompressedColumn right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn to subtract. |
CompressedColumn | right | Right CompressedColumn to subtract with. |
Returns
Type | Description |
---|---|
CompressedColumn | The CompressedColumn resulting from the subtraction. |
Subtract(CompressedColumn, CompressedRow)
Computes the right subtraction of a CompressedColumn with a CompressedRow.
Declaration
public static CompressedColumn Subtract(CompressedColumn left, CompressedRow right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn to subtract. |
CompressedRow | right | Right CompressedRow to subtract with. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the subtraction. |
Subtract(CompressedColumn, SparseMatrix)
Computes the right subtraction of a CompressedColumn with a SparseMatrix.
Declaration
public static CompressedColumn Subtract(CompressedColumn left, SparseMatrix right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn to subtract. |
SparseMatrix | right | Right SparseMatrix to subtract with. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the subtraction. |
Subtract(CompressedRow, CompressedColumn)
Computes the subtraction of a CompressedColumn on a CompressedRow.
Declaration
public static CompressedColumn Subtract(CompressedRow left, CompressedColumn right)
Parameters
Type | Name | Description |
---|---|---|
CompressedRow | left | Left CompressedRow to subtract. |
CompressedColumn | right | Right CompressedColumn to subtract with. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the subtraction. |
Subtract(SparseMatrix, CompressedColumn)
Computes the subtraction of a SparseMatrix on a CompressedColumn.
Declaration
public static CompressedColumn Subtract(SparseMatrix left, CompressedColumn right)
Parameters
Type | Name | Description |
---|---|---|
SparseMatrix | left | Left SparseMatrix to subtract. |
CompressedColumn | right | Right CompressedColumn to subtract with. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the subtraction. |
Transpose(CompressedColumn)
Transposes the CompressedRow
Declaration
public static CompressedColumn Transpose(CompressedColumn matrix)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | matrix | CompressedRow to tranpose. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedRow, transposed of the initial one. |
TransposeMultiply(CompressedColumn, DenseVector)
Computes the right multiplication of a transposed CompressedColumn with a DenseVector : At·V
.
Declaration
public static DenseVector TransposeMultiply(CompressedColumn matrix, DenseVector vector)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | matrix | CompressedColumn to transpose then multiply on the right. |
DenseVector | vector | DenseVector to multiply with. |
Returns
Type | Description |
---|---|
DenseVector | The new DenseVector resulting from the multiplication. |
TransposeMultiply(CompressedColumn, SparseVector)
Computes the right multiplication of a transposed CompressedColumn with a SparseVector : At·V
.
Declaration
public static SparseVector TransposeMultiply(CompressedColumn matrix, SparseVector vector)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | matrix | CompressedColumn to transpose then multiply on the right. |
SparseVector | vector | SparseVector to multiply with. |
Returns
Type | Description |
---|---|
SparseVector | The new SparseVector resulting from the multiplication. |
TransposeMultiply(CompressedColumn, Vector)
Computes the right multiplication of a transposed CompressedColumn with a Vector : At·V
.
Declaration
public static Vector TransposeMultiply(CompressedColumn matrix, Vector vector)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | matrix | CompressedColumn to transpose then multiply on the right. |
Vector | vector | Vector to multiply with. |
Returns
Type | Description |
---|---|
Vector | The new Vector resulting from the multiplication. |
TransposeMultiplySelf(CompressedColumn)
Computes the left multiplication of a CompressedColumn with its transposition : At·A
.
Declaration
public static CompressedColumn TransposeMultiplySelf(CompressedColumn operand)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | operand | CompressedColumn for the operation. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the operation. |
Zero(Int32, Int32)
Returns the neutral CompressedColumn for the addition.
Declaration
public static CompressedColumn Zero(int rowCount, int columnCount)
Parameters
Type | Name | Description |
---|---|---|
Int32 | rowCount | Number of rows of the CompressedColumn. |
Int32 | columnCount | Number of columns of the CompressedColumn. |
Returns
Type | Description |
---|---|
CompressedColumn | The CompressedColumn of the given size, with zeros on every coordinates. |
Operators
| Improve this Doc View SourceAddition(CompressedColumn, DenseMatrix)
Computes the right addition of a CompressedColumn with a DenseMatrix.
Declaration
public static DenseMatrix operator +(CompressedColumn left, DenseMatrix right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn for the addition. |
DenseMatrix | right | Right DenseMatrix for the addition. |
Returns
Type | Description |
---|---|
DenseMatrix | The new DenseMatrix resulting from the addition. |
Addition(CompressedColumn, Matrix)
Computes the right addition of a CompressedColumn with a Matrix on the right.
Declaration
public static Matrix operator +(CompressedColumn left, Matrix right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn for the addition. |
Matrix | right | Right Matrix for the addition. |
Returns
Type | Description |
---|---|
Matrix | The new Matrix resulting from the addition. |
Addition(CompressedColumn, CompressedColumn)
Computes the addition of two CompressedColumn.
Declaration
public static CompressedColumn operator +(CompressedColumn left, CompressedColumn right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn for the addition. |
CompressedColumn | right | Right CompressedColumn for the addition. |
Returns
Type | Description |
---|---|
CompressedColumn | The CompressedColumn resulting from the addition. |
Addition(CompressedColumn, CompressedRow)
Computes the right addition of a CompressedColumn with a CompressedRow.
Declaration
public static CompressedColumn operator +(CompressedColumn left, CompressedRow right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn for the addition. |
CompressedRow | right | Right CompressedRow for the addition. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the addition. |
Addition(CompressedColumn, SparseMatrix)
Computes the right addition of a CompressedColumn with a SparseMatrix.
Declaration
public static CompressedColumn operator +(CompressedColumn left, SparseMatrix right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn for the addition. |
SparseMatrix | right | Right SparseMatrix for the addition. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the addition. |
Division(CompressedColumn, Double)
Computes the scalar division of a CompressedColumn with a
Declaration
public static CompressedColumn operator /(CompressedColumn operand, double divisor)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | operand | CompressedColumn to divide. |
Double | divisor |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the scalar division. |
Explicit(CompressedRow to CompressedColumn)
Converts a CompressedRow number into a CompressedColumn.
Declaration
public static explicit operator CompressedColumn(CompressedRow crs)
Parameters
Type | Name | Description |
---|---|---|
CompressedRow | crs | CompressedRow to convert. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the conversion. |
Multiply(CompressedColumn, DenseMatrix)
Computes the right multiplication of a CompressedColumn with a DenseMatrix.
Declaration
public static DenseMatrix operator *(CompressedColumn left, DenseMatrix right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn for the multiplication. |
DenseMatrix | right | Right DenseMatrix for the multiplication. |
Returns
Type | Description |
---|---|
DenseMatrix | The new DenseMatrix resulting from the multiplication. |
Multiply(CompressedColumn, Matrix)
Computes the right multiplication of a CompressedColumn with a Matrix.
Declaration
public static Matrix operator *(CompressedColumn left, Matrix right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn for the multiplication. |
Matrix | right | Right Matrix for the multiplication. |
Returns
Type | Description |
---|---|
Matrix | The new Matrix resulting from the multiplication. |
Multiply(CompressedColumn, CompressedColumn)
Computes the multiplication of two CompressedColumn.
Declaration
public static CompressedColumn operator *(CompressedColumn left, CompressedColumn right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn for the multiplication. |
CompressedColumn | right | Right CompressedColumn for the multiplication. |
Returns
Type | Description |
---|---|
CompressedColumn | The CompressedColumn resulting from the multiplication. |
Multiply(CompressedColumn, CompressedRow)
Computes the right multiplication of a CompressedColumn with a CompressedRow.
Declaration
public static CompressedColumn operator *(CompressedColumn left, CompressedRow right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn for the multiplication. |
CompressedRow | right | Right CompressedRow for the multiplication. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the multiplication. |
Multiply(CompressedColumn, SparseMatrix)
Computes the right multiplication of a CompressedColumn with a SparseMatrix.
Declaration
public static CompressedColumn operator *(CompressedColumn left, SparseMatrix right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn for the multiplication. |
SparseMatrix | right | Right SparseMatrix for the multiplication. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the multiplication. |
Multiply(CompressedColumn, DenseVector)
Computes the right multiplication of a CompressedColumn with a DenseVector : A*V
.
Declaration
public static DenseVector operator *(CompressedColumn matrix, DenseVector vector)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | matrix | CompressedColumn to multiply on the right. |
DenseVector | vector | DenseVector to multiply with. |
Returns
Type | Description |
---|---|
DenseVector | The new DenseVector resulting from the multiplication. |
Multiply(CompressedColumn, SparseVector)
Computes the right multiplication of a CompressedColumn with a SparseVector : A*V
.
Declaration
public static SparseVector operator *(CompressedColumn matrix, SparseVector vector)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | matrix | CompressedColumn to multiply on the right. |
SparseVector | vector | SparseVector to multiply with. |
Returns
Type | Description |
---|---|
SparseVector | The new SparseVector resulting from the multiplication. |
Multiply(CompressedColumn, Vector)
Computes the right multiplication of a CompressedColumn with a Vector : A*V
.
Declaration
public static Vector operator *(CompressedColumn matrix, Vector vector)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | matrix | CompressedColumn to multiply on the right. |
Vector | vector | Vector to multiply with. |
Returns
Type | Description |
---|---|
Vector | The new Vector resulting from the multiplication. |
Multiply(CompressedColumn, Double)
Computes the right scalar multiplication of a CompressedColumn with a
Declaration
public static CompressedColumn operator *(CompressedColumn operand, double factor)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | operand | CompressedColumn to multiply on the right. |
Double | factor |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the right scalar multiplication. |
Multiply(Double, CompressedColumn)
Computes the left scalar multiplication of a CompressedColumn with a
Declaration
public static CompressedColumn operator *(double factor, CompressedColumn operand)
Parameters
Type | Name | Description |
---|---|---|
Double | factor | |
CompressedColumn | operand | CompressedColumn to multiply on the left. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the left scalar multiplication. |
Subtraction(CompressedColumn, DenseMatrix)
Computes the right subtraction of a CompressedColumn with a DenseMatrix.
Declaration
public static DenseMatrix operator -(CompressedColumn left, DenseMatrix right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn to subtract. |
DenseMatrix | right | Right DenseMatrix to subtract with. |
Returns
Type | Description |
---|---|
DenseMatrix | The new DenseMatrix resulting from the subtraction. |
Subtraction(CompressedColumn, Matrix)
Computes the right subtraction of a CompressedColumn with a Matrix.
Declaration
public static Matrix operator -(CompressedColumn left, Matrix right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn to subtract. |
Matrix | right | Right Matrix to subtract with. |
Returns
Type | Description |
---|---|
Matrix | The new Matrix resulting from the subtraction. |
Subtraction(CompressedColumn, CompressedColumn)
Computes the subtraction of two CompressedColumn.
Declaration
public static CompressedColumn operator -(CompressedColumn left, CompressedColumn right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn to subtract. |
CompressedColumn | right | Right CompressedColumn to subtract with. |
Returns
Type | Description |
---|---|
CompressedColumn | The CompressedColumn resulting from the subtraction. |
Subtraction(CompressedColumn, CompressedRow)
Computes the right subtraction of a CompressedColumn with a CompressedRow.
Declaration
public static CompressedColumn operator -(CompressedColumn left, CompressedRow right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn to subtract. |
CompressedRow | right | Right CompressedRow to subtract with. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the subtraction. |
Subtraction(CompressedColumn, SparseMatrix)
Computes the right subtraction of a CompressedColumn with a SparseMatrix.
Declaration
public static CompressedColumn operator -(CompressedColumn left, SparseMatrix right)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | left | Left CompressedColumn to subtract. |
SparseMatrix | right | Right SparseMatrix to subtract with. |
Returns
Type | Description |
---|---|
CompressedColumn | The new CompressedColumn resulting from the subtraction. |
UnaryNegation(CompressedColumn)
Computes the opposite of the CompressedColumn.
Declaration
public static CompressedColumn operator -(CompressedColumn operand)
Parameters
Type | Name | Description |
---|---|---|
CompressedColumn | operand | CompressedColumn whose opposite is to be computed. |
Returns
Type | Description |
---|---|
CompressedColumn | The CompressedColumn, opposite of the initial one. |
Explicit Interface Implementations
| Improve this Doc View SourceIGroupAction<CompressedColumn, Double>.Divide(Double)
Computes the right scalar division of the current element.
Declaration
CompressedColumn IGroupAction<CompressedColumn, double>.Divide(double divisor)
Parameters
Type | Name | Description |
---|---|---|
Double | divisor |
Returns
Type | Description |
---|---|
CompressedColumn | The new element resulting from the scalar dividion. |
IGroupAction<CompressedColumn, Double>.Multiply(Double)
Computes the right scalar multiplication of the current element.
Declaration
CompressedColumn IGroupAction<CompressedColumn, double>.Multiply(double factor)
Parameters
Type | Name | Description |
---|---|---|
Double | factor |
Returns
Type | Description |
---|---|
CompressedColumn | The new element resulting from the scalar multiplication. |