BRIDGES
  • Articles
  • BRIDGES
Search Results for

    Show / Hide Table of Contents
    • Settings
    • LinearAlgebra
      • Vectors
        • DenseVector
        • SparseVector
        • Vector
      • Factorisation
        • SparseQR
      • Matrices
        • DenseMatrix
        • Matrix
        • SparseMatrix
        • Sparse
          • CompressedColumn
          • CompressedRow
        • Storage
          • DictionaryOfKeys
    • Algebra
      • Measure
        • IDotProduct<TSelf, TValue>
        • IMetric<TSelf>
        • INorm<TSelf>
      • Sets
        • IGroupAction<TSelf, TValue>
      • Fundamentals
        • IAddable<T>
    • Solvers
      • GuidedProjection
        • Energy
        • GuidedProjectionAlgorithm
        • LinearisedConstraint
        • QuadraticConstraint
        • VariableSet
        • EnergyTypes
          • SegmentOrthogonality
          • SegmentParallelity
        • Interfaces
          • IEnergyType
          • ILinearisedConstraintType
          • IQuadraticConstraintType
        • QuadraticConstraintTypes
          • CoherentLength
          • LowerBound
          • UpperBound
          • VectorLength
    • Arithmetic
      • Polynomials
        • Multivariate
          • Monomial
          • Polynomial
        • Univariate
          • Polynomial
          • Specials
            • Bernstein
            • BSpline
      • Numbers
        • Complex
        • Quaternion
        • Real
    • Geometry
      • Euclidean3D
        • Basis
        • BSplineCurve
        • BSplineSurface
        • Circle
        • Frame
        • Line
        • NurbsCurve
        • NurbsSurface
        • Plane
        • Point
        • Polyline
        • Ray
        • Segment
        • Sphere
        • Vector
      • Kernel
        • BSplineCurve<TPoint>
        • BSplineSurface<TPoint>
        • CurveParameterFormat
        • IGeometricallyEquatable<T>
      • Projective3D
        • Point
    • DataStructures
      • PolyhedralMeshes
        • IEdge<TPosition>
        • IFace<TPosition>
        • IMesh<TPosition>
        • IVertex<TPosition>
        • FaceVertexMesh
          • Edge<TPosition>
          • Face<TPosition>
          • Mesh<TPosition>
          • Vertex<TPosition>
        • Abstract
          • Edge<TPosition, TVertex, TEdge, TFace>
          • Face<TPosition, TVertex, TEdge, TFace>
          • Mesh<TPosition, TVertex, TEdge, TFace>
          • Vertex<TPosition, TVertex, TEdge, TFace>
        • HalfedgeMesh
          • Edge<TPosition>
          • Face<TPosition>
          • Halfedge<TPosition>
          • Mesh<TPosition>
          • Vertex<TPosition>

    Class CompressedRow

    Class defining a sparse matrix with a compressed row storage.

    Inheritance
    Object
    Matrix
    SparseMatrix
    CompressedRow
    Implements
    IGroupAction<Matrix, Double>
    IGroupAction<SparseMatrix, Double>
    IGroupAction<CompressedRow, Double>
    Inherited Members
    SparseMatrix.Transpose(SparseMatrix)
    SparseMatrix.Add(SparseMatrix, SparseMatrix)
    SparseMatrix.Subtract(SparseMatrix, SparseMatrix)
    SparseMatrix.Multiply(SparseMatrix, SparseMatrix)
    SparseMatrix.TransposeMultiplySelf(SparseMatrix)
    SparseMatrix.Multiply(SparseMatrix, Double)
    SparseMatrix.Multiply(Double, SparseMatrix)
    SparseMatrix.Divide(SparseMatrix, Double)
    SparseMatrix.Multiply(SparseMatrix, Vector)
    SparseMatrix.Multiply(SparseMatrix, DenseVector)
    SparseMatrix.Multiply(SparseMatrix, SparseVector)
    SparseMatrix.TransposeMultiply(SparseMatrix, Vector)
    SparseMatrix.TransposeMultiply(SparseMatrix, DenseVector)
    SparseMatrix.TransposeMultiply(SparseMatrix, SparseVector)
    SparseMatrix.ToArray()
    SparseMatrix.IGroupAction<SparseMatrix, Double>.Multiply(Double)
    SparseMatrix.IGroupAction<SparseMatrix, Double>.Divide(Double)
    Matrix.Transpose(Matrix)
    Matrix.Add(Matrix, Matrix)
    Matrix.Subtract(Matrix, Matrix)
    Matrix.Opposite(Matrix)
    Matrix.Multiply(Matrix, Matrix)
    Matrix.TransposeMultiplySelf(Matrix)
    Matrix.Multiply(Double, Matrix)
    Matrix.Multiply(Matrix, Double)
    Matrix.Divide(Matrix, Double)
    Matrix.Multiply(Matrix, Vector)
    Matrix.Multiply(Matrix, DenseVector)
    Matrix.Multiply(Matrix, SparseVector)
    Matrix.TransposeMultiply(Matrix, Vector)
    Matrix.TransposeMultiply(Matrix, DenseVector)
    Matrix.TransposeMultiply(Matrix, SparseVector)
    Matrix.IGroupAction<Matrix, Double>.Multiply(Double)
    Matrix.IGroupAction<Matrix, Double>.Divide(Double)
    Namespace: BRIDGES.LinearAlgebra.Matrices.Sparse
    Assembly: BRIDGES.dll
    Syntax
    public class CompressedRow : SparseMatrix, IGroupAction<Matrix, double>, IGroupAction<SparseMatrix, double>, IGroupAction<CompressedRow, double>

    Constructors

    | Improve this Doc View Source

    CompressedRow(CompressedRow)

    Initialises a new instance of the CompressedRow class from another CompressedRow.

    Declaration
    public CompressedRow(CompressedRow crs)
    Parameters
    Type Name Description
    CompressedRow crs

    CompressedRow to deep copy.

    | Improve this Doc View Source

    CompressedRow(Int32, Int32, DictionaryOfKeys)

    Initialises a new instance of the CompressedRow class by defining its size, and by giving its values in a DictionaryOfKeys.

    Declaration
    public CompressedRow(int rowCount, int columnCount, DictionaryOfKeys dok)
    Parameters
    Type Name Description
    Int32 rowCount

    Number of rows of the CompressedRow.

    Int32 columnCount

    Number of columns of the CompressedRow.

    DictionaryOfKeys dok

    Values of the CompressedRow.

    Properties

    | Improve this Doc View Source

    ColumnCount

    Gets the number of columns in this matrix.

    Declaration
    public override int ColumnCount { get; }
    Property Value
    Type Description
    Int32
    Overrides
    Matrix.ColumnCount
    | Improve this Doc View Source

    Item[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
    SparseMatrix.Item[Int32]
    | Improve this Doc View Source

    NonZerosCount

    Gets the number of non-zero values in this sparse matrix.

    Declaration
    public override int NonZerosCount { get; }
    Property Value
    Type Description
    Int32
    Overrides
    SparseMatrix.NonZerosCount
    | Improve this Doc View Source

    RowCount

    Gets the number of rows in this matrix.

    Declaration
    public override int RowCount { get; }
    Property Value
    Type Description
    Int32
    Overrides
    Matrix.RowCount

    Methods

    | Improve this Doc View Source

    Add(CompressedColumn, CompressedRow)

    Computes the left addition of a CompressedRow with a CompressedColumn.

    Declaration
    public static CompressedRow 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
    CompressedRow

    The new CompressedRow resulting from the addition.

    | Improve this Doc View Source

    Add(CompressedRow, DenseMatrix)

    Computes the right addition of a CompressedRow with a DenseMatrix.

    Declaration
    public static DenseMatrix Add(CompressedRow left, DenseMatrix right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow for the addition.

    DenseMatrix right

    Right DenseMatrix for the addition.

    Returns
    Type Description
    DenseMatrix

    The new DenseMatrix resulting from the addition.

    | Improve this Doc View Source

    Add(CompressedRow, Matrix)

    Computes the right addition of a CompressedRow with a Matrix on the right.

    Declaration
    public static Matrix Add(CompressedRow left, Matrix right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow for the addition.

    Matrix right

    Right Matrix for the addition.

    Returns
    Type Description
    Matrix

    The new Matrix resulting from the addition.

    | Improve this Doc View Source

    Add(CompressedRow, CompressedColumn)

    Computes the right addition of a CompressedRow with a CompressedColumn.

    Declaration
    public static CompressedRow 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
    CompressedRow

    The new CompressedColumn resulting from the addition.

    | Improve this Doc View Source

    Add(CompressedRow, CompressedRow)

    Computes the addition of two CompressedRow.

    Declaration
    public static CompressedRow Add(CompressedRow left, CompressedRow right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow for the addition.

    CompressedRow right

    Right CompressedRow for the addition.

    Returns
    Type Description
    CompressedRow

    The CompressedRow resulting from the addition.

    | Improve this Doc View Source

    Add(CompressedRow, SparseMatrix)

    Computes the right addition of a CompressedRow with a SparseMatrix.

    Declaration
    public static CompressedRow Add(CompressedRow left, SparseMatrix right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow for the addition.

    SparseMatrix right

    Right SparseMatrix for the addition.

    Returns
    Type Description
    CompressedRow

    The new CompressedRow resulting from the addition.

    | Improve this Doc View Source

    Add(SparseMatrix, CompressedRow)

    Computes the left addition of a CompressedRow with a SparseMatrix.

    Declaration
    public static CompressedRow Add(SparseMatrix left, CompressedRow right)
    Parameters
    Type Name Description
    SparseMatrix left

    Left SparseMatrix for the addition.

    CompressedRow right

    Right CompressedRow for the addition.

    Returns
    Type Description
    CompressedRow

    The new CompressedRow resulting from the addition.

    | Improve this Doc View Source

    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
    Matrix.At(Int32, Int32)
    | Improve this Doc View Source

    ColumnIndex(Int32)

    Returns the column index of a non-zero value at a given index.

    Declaration
    public int ColumnIndex(int index)
    Parameters
    Type Name Description
    Int32 index

    Index of the non-zero value whose column index to get.

    Returns
    Type Description
    Int32

    The column index of this CompressedRow sparse matrix at the given index.

    | Improve this Doc View Source

    Divide(CompressedRow, Double)

    Computes the scalar division of a CompressedRow with a number.

    Declaration
    public static CompressedRow Divide(CompressedRow operand, double divisor)
    Parameters
    Type Name Description
    CompressedRow operand

    CompressedRow to divide.

    Double divisor

    number to divide with.

    Returns
    Type Description
    CompressedRow

    The new CompressedRow resulting from the scalar division.

    | Improve this Doc View Source

    Identity(Int32)

    Returns the neutral CompressedRow for the multiplication.

    Declaration
    public static CompressedRow Identity(int size)
    Parameters
    Type Name Description
    Int32 size

    Number of rows and columns of the CompressedRow.

    Returns
    Type Description
    CompressedRow

    The CompressedRow of the given size, with ones on the diagonal and zeros elsewhere.

    | Improve this Doc View Source

    Insert(Int32, Int32, Double)

    Inserts a value at the given row and column index. If a non-zero value already exists, the value replaces the existing one.

    Declaration
    public int Insert(int rowIndex, int columnIndex, double value)
    Parameters
    Type Name Description
    Int32 rowIndex

    Row index of the value to insert.

    Int32 columnIndex

    Column index of the value to insert.

    Double value

    Value to insert.

    Returns
    Type Description
    Int32

    The index of the inserted non-zero value.

    Remarks

    This operation can be time consuming.

    | Improve this Doc View Source

    Multiply(CompressedColumn, CompressedRow)

    Computes the left multiplication of a CompressedRow with a CompressedColumn.

    Declaration
    public static CompressedRow 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
    CompressedRow

    The new CompressedRow resulting from the multiplication.

    | Improve this Doc View Source

    Multiply(CompressedRow, DenseMatrix)

    Computes the right multiplication of a CompressedRow with a DenseMatrix.

    Declaration
    public static DenseMatrix Multiply(CompressedRow left, DenseMatrix right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow for the multiplication.

    DenseMatrix right

    Right DenseMatrix for the multiplication.

    Returns
    Type Description
    DenseMatrix

    The new DenseMatrix resulting from the multiplication.

    | Improve this Doc View Source

    Multiply(CompressedRow, Matrix)

    Computes the right multiplication of a CompressedRow with a Matrix.

    Declaration
    public static Matrix Multiply(CompressedRow left, Matrix right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow for the multiplication.

    Matrix right

    Right Matrix for the multiplication.

    Returns
    Type Description
    Matrix

    The new Matrix resulting from the multiplication.

    | Improve this Doc View Source

    Multiply(CompressedRow, CompressedColumn)

    Computes the right multiplication of a CompressedRow with a CompressedColumn.

    Declaration
    public static CompressedRow 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
    CompressedRow

    The new CompressedColumn resulting from the multiplication.

    | Improve this Doc View Source

    Multiply(CompressedRow, CompressedRow)

    Computes the multiplication of two CompressedRow.

    Declaration
    public static CompressedRow Multiply(CompressedRow left, CompressedRow right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow for the multiplication.

    CompressedRow right

    Right CompressedRow for the multiplication.

    Returns
    Type Description
    CompressedRow

    The CompressedRow resulting from the multiplication.

    | Improve this Doc View Source

    Multiply(CompressedRow, SparseMatrix)

    Computes the right multiplication of a CompressedRow with a SparseMatrix.

    Declaration
    public static CompressedRow Multiply(CompressedRow left, SparseMatrix right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow for the multiplication.

    SparseMatrix right

    Right SparseMatrix for the multiplication.

    Returns
    Type Description
    CompressedRow

    The new CompressedRow resulting from the multiplication.

    | Improve this Doc View Source

    Multiply(CompressedRow, DenseVector)

    Computes the right multiplication of a CompressedRow with a DenseVector : A*V.

    Declaration
    public static DenseVector Multiply(CompressedRow matrix, DenseVector vector)
    Parameters
    Type Name Description
    CompressedRow matrix

    CompressedRow to multiply on the right.

    DenseVector vector

    DenseVector to multiply with.

    Returns
    Type Description
    DenseVector

    The new DenseVector resulting from the multiplication.

    | Improve this Doc View Source

    Multiply(CompressedRow, SparseVector)

    Computes the right multiplication of a CompressedRow with a SparseVector : A*V.

    Declaration
    public static SparseVector Multiply(CompressedRow matrix, SparseVector vector)
    Parameters
    Type Name Description
    CompressedRow matrix

    CompressedRow to multiply on the right.

    SparseVector vector

    SparseVector to multiply with.

    Returns
    Type Description
    SparseVector

    The new DenseVector resulting from the multiplication.

    | Improve this Doc View Source

    Multiply(CompressedRow, Vector)

    Computes the right multiplication of a CompressedRow with a Vector : A*V.

    Declaration
    public static Vector Multiply(CompressedRow matrix, Vector vector)
    Parameters
    Type Name Description
    CompressedRow matrix

    CompressedRow to multiply on the right.

    Vector vector

    Vector to multiply with.

    Returns
    Type Description
    Vector

    The new Vector resulting from the multiplication.

    | Improve this Doc View Source

    Multiply(CompressedRow, Double)

    Computes the right scalar multiplication of a CompressedRow with a number.

    Declaration
    public static CompressedRow Multiply(CompressedRow operand, double factor)
    Parameters
    Type Name Description
    CompressedRow operand

    CompressedRow to multiply on the right.

    Double factor

    number to multiply with.

    Returns
    Type Description
    CompressedRow

    The new CompressedRow resulting from the right scalar multiplication.

    | Improve this Doc View Source

    Multiply(SparseMatrix, CompressedRow)

    Computes the left multiplication of a CompressedRow with a SparseMatrix.

    Declaration
    public static CompressedRow Multiply(SparseMatrix left, CompressedRow right)
    Parameters
    Type Name Description
    SparseMatrix left

    Left SparseMatrix for the multiplication.

    CompressedRow right

    Right CompressedRow for the multiplication.

    Returns
    Type Description
    CompressedRow

    The new CompressedRow resulting from the multiplication.

    | Improve this Doc View Source

    Multiply(Double, CompressedRow)

    Computes the left scalar multiplication of a CompressedRow with a number.

    Declaration
    public static CompressedRow Multiply(double factor, CompressedRow operand)
    Parameters
    Type Name Description
    Double factor

    number to multiply with.

    CompressedRow operand

    CompressedRow to multiply on the left.

    Returns
    Type Description
    CompressedRow

    The new CompressedRow resulting from the left scalar multiplication.

    | Improve this Doc View Source

    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 CompressedRow sparse matrix at the given index.

    | Improve this Doc View Source

    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
    SparseMatrix.NonZeros()
    | Improve this Doc View Source

    RowPointer(Int32)

    Returns the row pointers at a given index.

    Declaration
    public int RowPointer(int index)
    Parameters
    Type Name Description
    Int32 index

    Index row pointer to get.

    Returns
    Type Description
    Int32

    The row pointers of this CompressedRow sparse matrix.

    | Improve this Doc View Source

    SolveCholesky(Vector)

    Solve the system

    Ax=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.

    | Improve this Doc View Source

    Subtract(CompressedColumn, CompressedRow)

    Computes the subtraction of a CompressedRow on a CompressedColumn.

    Declaration
    public static CompressedRow Subtract(CompressedColumn left, CompressedRow right)
    Parameters
    Type Name Description
    CompressedColumn left

    Left CompressedColumn to subtract with.

    CompressedRow right

    Right CompressedRow to subtract.

    Returns
    Type Description
    CompressedRow

    The new CompressedRow resulting from the subtraction.

    | Improve this Doc View Source

    Subtract(CompressedRow, DenseMatrix)

    Computes the right subtraction of a CompressedRow with a DenseMatrix.

    Declaration
    public static DenseMatrix Subtract(CompressedRow left, DenseMatrix right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow to subtract.

    DenseMatrix right

    Right DenseMatrix to subtract with.

    Returns
    Type Description
    DenseMatrix

    The new DenseMatrix resulting from the subtraction.

    | Improve this Doc View Source

    Subtract(CompressedRow, Matrix)

    Computes the right subtraction of a CompressedRow with a Matrix.

    Declaration
    public static Matrix Subtract(CompressedRow left, Matrix right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow to subtract.

    Matrix right

    Right Matrix to subtract with.

    Returns
    Type Description
    Matrix

    The new Matrix resulting from the subtraction.

    | Improve this Doc View Source

    Subtract(CompressedRow, CompressedColumn)

    Computes the right subtraction of a CompressedRow with a CompressedColumn.

    Declaration
    public static CompressedRow 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
    CompressedRow

    The new CompressedColumn resulting from the subtraction.

    | Improve this Doc View Source

    Subtract(CompressedRow, CompressedRow)

    Computes the subtraction of two CompressedRow.

    Declaration
    public static CompressedRow Subtract(CompressedRow left, CompressedRow right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow to subtract.

    CompressedRow right

    Right CompressedRow to subtract with.

    Returns
    Type Description
    CompressedRow

    The CompressedRow resulting from the subtraction.

    | Improve this Doc View Source

    Subtract(CompressedRow, SparseMatrix)

    Computes the right subtraction of a CompressedRow with a SparseMatrix.

    Declaration
    public static CompressedRow Subtract(CompressedRow left, SparseMatrix right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow to subtract.

    SparseMatrix right

    Right SparseMatrix to subtract with.

    Returns
    Type Description
    CompressedRow

    The new CompressedRow resulting from the subtraction.

    | Improve this Doc View Source

    Subtract(SparseMatrix, CompressedRow)

    Computes the subtraction of a CompressedRow on a SparseMatrix.

    Declaration
    public static CompressedRow Subtract(SparseMatrix left, CompressedRow right)
    Parameters
    Type Name Description
    SparseMatrix left

    Left SparseMatrix to subtract with.

    CompressedRow right

    Right CompressedRow to subtract.

    Returns
    Type Description
    CompressedRow

    The new CompressedRow resulting from the subtraction.

    | Improve this Doc View Source

    Transpose(CompressedRow)

    Transposes the CompressedRow

    Declaration
    public static CompressedRow Transpose(CompressedRow matrix)
    Parameters
    Type Name Description
    CompressedRow matrix

    CompressedRow to tranpose.

    Returns
    Type Description
    CompressedRow

    The new CompressedRow, transposed of the initial one.

    | Improve this Doc View Source

    TransposeMultiply(CompressedRow, DenseVector)

    Computes the right multiplication of a transposed CompressedRow with a DenseVector : At·V.

    Declaration
    public static DenseVector TransposeMultiply(CompressedRow matrix, DenseVector vector)
    Parameters
    Type Name Description
    CompressedRow matrix

    CompressedRow to transpose then multiply on the right.

    DenseVector vector

    DenseVector to multiply with.

    Returns
    Type Description
    DenseVector

    The new DenseVector resulting from the multiplication.

    | Improve this Doc View Source

    TransposeMultiply(CompressedRow, SparseVector)

    Computes the right multiplication of a transposed CompressedRow with a SparseVector : At·V.

    Declaration
    public static SparseVector TransposeMultiply(CompressedRow matrix, SparseVector vector)
    Parameters
    Type Name Description
    CompressedRow matrix

    CompressedRow to transpose then multiply on the right.

    SparseVector vector

    SparseVector to multiply with.

    Returns
    Type Description
    SparseVector

    The new SparseVector resulting from the multiplication.

    | Improve this Doc View Source

    TransposeMultiply(CompressedRow, Vector)

    Computes the right multiplication of a transposed CompressedRow with a Vector : At·V.

    Declaration
    public static Vector TransposeMultiply(CompressedRow matrix, Vector vector)
    Parameters
    Type Name Description
    CompressedRow matrix

    CompressedRow to transpose then multiply on the right.

    Vector vector

    Vector to multiply with.

    Returns
    Type Description
    Vector

    The new Vector resulting from the multiplication.

    | Improve this Doc View Source

    TransposeMultiplySelf(CompressedRow)

    Computes the left multiplication of a CompressedRow with its transposition : At·A.

    Declaration
    public static CompressedRow TransposeMultiplySelf(CompressedRow operand)
    Parameters
    Type Name Description
    CompressedRow operand

    CompressedRow for the operation.

    Returns
    Type Description
    CompressedRow

    The new CompressedRow resulting from the operation.

    | Improve this Doc View Source

    Zero(Int32, Int32)

    Returns the neutral CompressedRow for the addition.

    Declaration
    public static CompressedRow Zero(int rowCount, int columnCount)
    Parameters
    Type Name Description
    Int32 rowCount

    Number of rows of the CompressedRow.

    Int32 columnCount

    Number of columns of the CompressedRow.

    Returns
    Type Description
    CompressedRow

    The CompressedRow of the given size, with zeros on every coordinates.

    Operators

    | Improve this Doc View Source

    Addition(CompressedRow, DenseMatrix)

    Computes the right addition of a CompressedRow with a DenseMatrix.

    Declaration
    public static DenseMatrix operator +(CompressedRow left, DenseMatrix right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow for the addition.

    DenseMatrix right

    Right DenseMatrix for the addition.

    Returns
    Type Description
    DenseMatrix

    The new DenseMatrix resulting from the addition.

    | Improve this Doc View Source

    Addition(CompressedRow, Matrix)

    Computes the right addition of a CompressedRow with a Matrix on the right.

    Declaration
    public static Matrix operator +(CompressedRow left, Matrix right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow for the addition.

    Matrix right

    Right Matrix for the addition.

    Returns
    Type Description
    Matrix

    The new Matrix resulting from the addition.

    | Improve this Doc View Source

    Addition(CompressedRow, CompressedColumn)

    Computes the right addition of a CompressedRow with a CompressedColumn.

    Declaration
    public static CompressedRow operator +(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
    CompressedRow

    The new CompressedColumn resulting from the addition.

    | Improve this Doc View Source

    Addition(CompressedRow, CompressedRow)

    Computes the addition of two CompressedRow.

    Declaration
    public static CompressedRow operator +(CompressedRow left, CompressedRow right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow for the addition.

    CompressedRow right

    Right CompressedRow for the addition.

    Returns
    Type Description
    CompressedRow

    The CompressedRow resulting from the addition.

    | Improve this Doc View Source

    Addition(CompressedRow, SparseMatrix)

    Computes the right addition of a CompressedRow with a SparseMatrix.

    Declaration
    public static CompressedRow operator +(CompressedRow left, SparseMatrix right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow for the addition.

    SparseMatrix right

    Right SparseMatrix for the addition.

    Returns
    Type Description
    CompressedRow

    The new CompressedRow resulting from the addition.

    | Improve this Doc View Source

    Division(CompressedRow, Double)

    Computes the scalar division of a CompressedRow with a number.

    Declaration
    public static CompressedRow operator /(CompressedRow operand, double divisor)
    Parameters
    Type Name Description
    CompressedRow operand

    CompressedRow to divide.

    Double divisor

    number to divide with.

    Returns
    Type Description
    CompressedRow

    The new CompressedRow resulting from the scalar division.

    | Improve this Doc View Source

    Explicit(CompressedColumn to CompressedRow)

    Converts a CompressedColumn number into a CompressedRow.

    Declaration
    public static explicit operator CompressedRow(CompressedColumn ccs)
    Parameters
    Type Name Description
    CompressedColumn ccs

    CompressedRow to convert.

    Returns
    Type Description
    CompressedRow

    The new CompressedRow resulting from the conversion.

    | Improve this Doc View Source

    Multiply(CompressedRow, DenseMatrix)

    Computes the right multiplication of a CompressedRow with a DenseMatrix.

    Declaration
    public static DenseMatrix operator *(CompressedRow left, DenseMatrix right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow for the multiplication.

    DenseMatrix right

    Right DenseMatrix for the multiplication.

    Returns
    Type Description
    DenseMatrix

    The new DenseMatrix resulting from the multiplication.

    | Improve this Doc View Source

    Multiply(CompressedRow, Matrix)

    Computes the right multiplication of a CompressedRow with a Matrix.

    Declaration
    public static Matrix operator *(CompressedRow left, Matrix right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow for the multiplication.

    Matrix right

    Right Matrix for the multiplication.

    Returns
    Type Description
    Matrix

    The new Matrix resulting from the multiplication.

    | Improve this Doc View Source

    Multiply(CompressedRow, CompressedColumn)

    Computes the right multiplication of a CompressedRow with a CompressedColumn.

    Declaration
    public static CompressedRow operator *(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
    CompressedRow

    The new CompressedColumn resulting from the multiplication.

    | Improve this Doc View Source

    Multiply(CompressedRow, CompressedRow)

    Computes the multiplication of two CompressedRow.

    Declaration
    public static CompressedRow operator *(CompressedRow left, CompressedRow right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow for the multiplication.

    CompressedRow right

    Right CompressedRow for the multiplication.

    Returns
    Type Description
    CompressedRow

    The CompressedRow resulting from the multiplication.

    | Improve this Doc View Source

    Multiply(CompressedRow, SparseMatrix)

    Computes the right multiplication of a CompressedRow with a SparseMatrix.

    Declaration
    public static CompressedRow operator *(CompressedRow left, SparseMatrix right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow for the multiplication.

    SparseMatrix right

    Right SparseMatrix for the multiplication.

    Returns
    Type Description
    CompressedRow

    The new CompressedRow resulting from the multiplication.

    | Improve this Doc View Source

    Multiply(CompressedRow, DenseVector)

    Computes the right multiplication of a CompressedRow with a DenseVector : A*V.

    Declaration
    public static DenseVector operator *(CompressedRow matrix, DenseVector vector)
    Parameters
    Type Name Description
    CompressedRow matrix

    CompressedRow to multiply on the right.

    DenseVector vector

    DenseVector to multiply with.

    Returns
    Type Description
    DenseVector

    The new DenseVector resulting from the multiplication.

    | Improve this Doc View Source

    Multiply(CompressedRow, SparseVector)

    Computes the right multiplication of a CompressedRow with a SparseVector : A*V.

    Declaration
    public static SparseVector operator *(CompressedRow matrix, SparseVector vector)
    Parameters
    Type Name Description
    CompressedRow matrix

    CompressedRow to multiply on the right.

    SparseVector vector

    SparseVector to multiply with.

    Returns
    Type Description
    SparseVector

    The new SparseVector resulting from the multiplication.

    | Improve this Doc View Source

    Multiply(CompressedRow, Vector)

    Computes the right multiplication of a CompressedRow with a Vector : A*V.

    Declaration
    public static Vector operator *(CompressedRow matrix, Vector vector)
    Parameters
    Type Name Description
    CompressedRow matrix

    CompressedRow to multiply on the right.

    Vector vector

    Vector to multiply with.

    Returns
    Type Description
    Vector

    The new Vector resulting from the multiplication.

    | Improve this Doc View Source

    Multiply(CompressedRow, Double)

    Computes the right scalar multiplication of a CompressedRow with a number.

    Declaration
    public static CompressedRow operator *(CompressedRow operand, double factor)
    Parameters
    Type Name Description
    CompressedRow operand

    CompressedRow to multiply on the right.

    Double factor

    number to multiply with.

    Returns
    Type Description
    CompressedRow

    The new CompressedRow resulting from the right scalar multiplication.

    | Improve this Doc View Source

    Multiply(Double, CompressedRow)

    Computes the left scalar multiplication of a CompressedRow with a number.

    Declaration
    public static CompressedRow operator *(double factor, CompressedRow operand)
    Parameters
    Type Name Description
    Double factor

    number to multiply with.

    CompressedRow operand

    CompressedRow to multiply on the left.

    Returns
    Type Description
    CompressedRow

    The new CompressedRow resulting from the left scalar multiplication.

    | Improve this Doc View Source

    Subtraction(CompressedRow, DenseMatrix)

    Computes the right subtraction of a CompressedRow with a DenseMatrix.

    Declaration
    public static DenseMatrix operator -(CompressedRow left, DenseMatrix right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow to subtract.

    DenseMatrix right

    Right DenseMatrix to subtract with.

    Returns
    Type Description
    DenseMatrix

    The new DenseMatrix resulting from the subtraction.

    | Improve this Doc View Source

    Subtraction(CompressedRow, Matrix)

    Computes the right subtraction of a CompressedRow with a Matrix.

    Declaration
    public static Matrix operator -(CompressedRow left, Matrix right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow to subtract.

    Matrix right

    Right Matrix to subtract with.

    Returns
    Type Description
    Matrix

    The new Matrix resulting from the subtraction.

    | Improve this Doc View Source

    Subtraction(CompressedRow, CompressedColumn)

    Computes the right subtraction of a CompressedRow with a CompressedColumn.

    Declaration
    public static CompressedRow operator -(CompressedRow left, CompressedColumn right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow to subtract.

    CompressedColumn right

    Right CompressedColumn to subtract with.

    Returns
    Type Description
    CompressedRow

    The new CompressedColumn resulting from the subtraction.

    | Improve this Doc View Source

    Subtraction(CompressedRow, CompressedRow)

    Computes the subtraction of two CompressedRow.

    Declaration
    public static CompressedRow operator -(CompressedRow left, CompressedRow right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow to subtract.

    CompressedRow right

    Right CompressedRow to subtract with.

    Returns
    Type Description
    CompressedRow

    The CompressedRow resulting from the subtraction.

    | Improve this Doc View Source

    Subtraction(CompressedRow, SparseMatrix)

    Computes the right subtraction of a CompressedRow with a SparseMatrix.

    Declaration
    public static CompressedRow operator -(CompressedRow left, SparseMatrix right)
    Parameters
    Type Name Description
    CompressedRow left

    Left CompressedRow to subtract.

    SparseMatrix right

    Right SparseMatrix to subtract with.

    Returns
    Type Description
    CompressedRow

    The new CompressedRow resulting from the subtraction.

    | Improve this Doc View Source

    UnaryNegation(CompressedRow)

    Computes the opposite of the CompressedRow.

    Declaration
    public static CompressedRow operator -(CompressedRow operand)
    Parameters
    Type Name Description
    CompressedRow operand

    CompressedRow whose opposite is to be computed.

    Returns
    Type Description
    CompressedRow

    The CompressedRow, opposite of the initial one.

    Explicit Interface Implementations

    | Improve this Doc View Source

    IGroupAction<CompressedRow, Double>.Divide(Double)

    Computes the right scalar division of the current element.

    Declaration
    CompressedRow IGroupAction<CompressedRow, double>.Divide(double divisor)
    Parameters
    Type Name Description
    Double divisor
    Returns
    Type Description
    CompressedRow

    The new element resulting from the scalar dividion.

    | Improve this Doc View Source

    IGroupAction<CompressedRow, Double>.Multiply(Double)

    Computes the right scalar multiplication of the current element.

    Declaration
    CompressedRow IGroupAction<CompressedRow, double>.Multiply(double factor)
    Parameters
    Type Name Description
    Double factor
    Returns
    Type Description
    CompressedRow

    The new element resulting from the scalar multiplication.

    Implements

    IGroupAction<TSelf, TValue>
    IGroupAction<TSelf, TValue>
    IGroupAction<TSelf, TValue>
    • Improve this Doc
    • View Source
    In This Article
    Back to top By ENPC and the Build'In Platform