Click or drag to resize

CreateMatrix Class

[Missing <summary> documentation for "T:Altaxo.Calc.LinearAlgebra.CreateMatrix"]

Inheritance Hierarchy
SystemObject
  Altaxo.Calc.LinearAlgebraCreateMatrix

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static class CreateMatrix

The CreateMatrix type exposes the following members.

Methods
 NameDescription
Public methodStatic memberDenseT(DenseColumnMajorMatrixStorageT) Create a new dense matrix straight from an initialized matrix storage instance. The storage is used directly without copying. Intended for advanced scenarios where you're working directly with storage for performance or interop reasons.
Public methodStatic memberDenseT(Int32, Int32) Create a new dense matrix with the given number of rows and columns. All cells of the matrix will be initialized to zero.
Public methodStatic memberDenseT(Int32, Int32, T) Create a new dense matrix and initialize each value to the same provided value.
Public methodStatic memberDenseT(Int32, Int32, T) Create a new dense matrix with the given number of rows and columns directly binding to a raw array. The array is assumed to be in column-major order (column by column) and is used directly without copying. Very efficient, but changes to the array and the matrix will affect each other.
Public methodStatic memberDenseT(Int32, Int32, FuncInt32, Int32, T) Create a new dense matrix and initialize each value using the provided init function.
Public methodStatic memberDenseDiagonalT(Int32, T) Create a new diagonal dense matrix and initialize each diagonal value to the same provided value.
Public methodStatic memberDenseDiagonalT(Int32, Int32, T) Create a new diagonal dense matrix and initialize each diagonal value to the same provided value.
Public methodStatic memberDenseDiagonalT(Int32, Int32, FuncInt32, T) Create a new diagonal dense matrix and initialize each diagonal value using the provided init function.
Public methodStatic memberDenseIdentityT(Int32) Create a new diagonal dense identity matrix with a one-diagonal.
Public methodStatic memberDenseIdentityT(Int32, Int32) Create a new diagonal dense identity matrix with a one-diagonal.
Public methodStatic memberDenseOfArrayT Create a new dense matrix as a copy of the given two-dimensional array. This new matrix will be independent from the provided array. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDenseOfColumnArraysT(T) Create a new dense matrix of T as a copy of the given column arrays. This new matrix will be independent from the arrays. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDenseOfColumnArraysT(IEnumerableT) Create a new dense matrix of T as a copy of the given column arrays. This new matrix will be independent from the arrays. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDenseOfColumnMajorT Create a new dense matrix as a copy of the given enumerable. The enumerable is assumed to be in column-major order (column by column). This new matrix will be independent from the enumerable. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDenseOfColumnsT(IEnumerableIEnumerableT) Create a new dense matrix as a copy of the given enumerable of enumerable columns. Each enumerable in the master enumerable specifies a column. This new matrix will be independent from the enumerables. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDenseOfColumnsT(Int32, Int32, IEnumerableIEnumerableT) Create a new dense matrix as a copy of the given enumerable of enumerable columns. Each enumerable in the master enumerable specifies a column. This new matrix will be independent from the enumerables. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDenseOfColumnVectorsT(IEnumerableVectorT) Create a new dense matrix as a copy of the given column vectors. This new matrix will be independent from the vectors. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDenseOfColumnVectorsT(VectorT) Create a new dense matrix as a copy of the given column vectors. This new matrix will be independent from the vectors. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDenseOfDiagonalArrayT(T) Create a new dense matrix with the diagonal as a copy of the given array. This new matrix will be independent from the array. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDenseOfDiagonalArrayT(Int32, Int32, T) Create a new dense matrix with the diagonal as a copy of the given array. This new matrix will be independent from the array. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDenseOfDiagonalVectorT(VectorT) Create a new dense matrix with the diagonal as a copy of the given vector. This new matrix will be independent from the vector. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDenseOfDiagonalVectorT(Int32, Int32, VectorT) Create a new dense matrix with the diagonal as a copy of the given vector. This new matrix will be independent from the vector. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDenseOfIndexedT(Int32, Int32, IEnumerableTupleInt32, Int32, T) Create a new dense matrix as a copy of the given indexed enumerable. Keys must be provided at most once, zero is assumed if a key is omitted. This new matrix will be independent from the enumerable. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDenseOfIndexedT(Int32, Int32, IEnumerableValueTupleInt32, Int32, T) Create a new dense matrix as a copy of the given indexed enumerable. Keys must be provided at most once, zero is assumed if a key is omitted. This new matrix will be independent from the enumerable. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDenseOfMatrixT Create a new dense matrix as a copy of the given other matrix. This new matrix will be independent from the other matrix. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDenseOfMatrixArrayT Create a new dense matrix from a 2D array of existing matrices. The matrices in the array are not required to be dense already. If the matrices do not align properly, they are placed on the top left corner of their cell with the remaining fields left zero.
Public methodStatic memberDenseOfRowArraysT(T) Create a new dense matrix of T as a copy of the given row arrays. This new matrix will be independent from the arrays. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDenseOfRowArraysT(IEnumerableT) Create a new dense matrix of T as a copy of the given row arrays. This new matrix will be independent from the arrays. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDenseOfRowsT(IEnumerableIEnumerableT) Create a new dense matrix as a copy of the given enumerable of enumerable rows. Each enumerable in the master enumerable specifies a row. This new matrix will be independent from the enumerables. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDenseOfRowsT(Int32, Int32, IEnumerableIEnumerableT) Create a new dense matrix as a copy of the given enumerable of enumerable rows. Each enumerable in the master enumerable specifies a row. This new matrix will be independent from the enumerables. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDenseOfRowVectorsT(IEnumerableVectorT) Create a new dense matrix as a copy of the given row vectors. This new matrix will be independent from the vectors. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDenseOfRowVectorsT(VectorT) Create a new dense matrix as a copy of the given row vectors. This new matrix will be independent from the vectors. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDiagonalT(T) Create a new square diagonal matrix directly binding to a raw array. The array is assumed to represent the diagonal values and is used directly without copying. Very efficient, but changes to the array and the matrix will affect each other.
Public methodStatic memberDiagonalT(DiagonalMatrixStorageT) Create a new diagonal matrix straight from an initialized matrix storage instance. The storage is used directly without copying. Intended for advanced scenarios where you're working directly with storage for performance or interop reasons.
Public methodStatic memberDiagonalT(Int32, Int32) Create a new diagonal matrix with the given number of rows and columns. All cells of the matrix will be initialized to zero.
Public methodStatic memberDiagonalT(Int32, Int32, T) Create a new diagonal matrix and initialize each diagonal value to the same provided value.
Public methodStatic memberDiagonalT(Int32, Int32, T) Create a new diagonal matrix with the given number of rows and columns directly binding to a raw array. The array is assumed to represent the diagonal values and is used directly without copying. Very efficient, but changes to the array and the matrix will affect each other.
Public methodStatic memberDiagonalT(Int32, Int32, FuncInt32, T) Create a new diagonal matrix and initialize each diagonal value using the provided init function.
Public methodStatic memberDiagonalIdentityT(Int32) Create a new diagonal identity matrix with a one-diagonal.
Public methodStatic memberDiagonalIdentityT(Int32, Int32) Create a new diagonal identity matrix with a one-diagonal.
Public methodStatic memberDiagonalOfDiagonalArrayT(T) Create a new diagonal matrix with the diagonal as a copy of the given array. This new matrix will be independent from the array. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDiagonalOfDiagonalArrayT(Int32, Int32, T) Create a new diagonal matrix with the diagonal as a copy of the given array. This new matrix will be independent from the array. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDiagonalOfDiagonalVectorT(VectorT) Create a new diagonal matrix with the diagonal as a copy of the given vector. This new matrix will be independent from the vector. A new memory block will be allocated for storing the matrix.
Public methodStatic memberDiagonalOfDiagonalVectorT(Int32, Int32, VectorT) Create a new diagonal matrix with the diagonal as a copy of the given vector. This new matrix will be independent from the vector. A new memory block will be allocated for storing the matrix.
Public methodStatic memberRandomT(Int32, Int32) Create a new dense matrix with values sampled from the standard distribution with a system random source.
Public methodStatic memberRandomT(Int32, Int32, IContinuousDistribution) Create a new dense matrix with values sampled from the provided random distribution.
Public methodStatic memberRandomT(Int32, Int32, Int32) Create a new dense matrix with values sampled from the standard distribution with a system random source.
Public methodStatic memberRandomPositiveDefiniteT(Int32) Create a new positive definite dense matrix where each value is the product of two samples from the standard distribution.
Public methodStatic memberRandomPositiveDefiniteT(Int32, IContinuousDistribution) Create a new positive definite dense matrix where each value is the product of two samples from the provided random distribution.
Public methodStatic memberRandomPositiveDefiniteT(Int32, Int32) Create a new positive definite dense matrix where each value is the product of two samples from the provided random distribution.
Public methodStatic memberSameAsT(MatrixT, MatrixT) Create a new matrix with a type that can represent and is closest to both provided samples and the dimensions of example.
Public methodStatic memberSameAsT(VectorT, Int32, Int32) Create a new matrix with the same kind of the provided example.
Public methodStatic memberSameAsT(MatrixT, MatrixT, Int32, Int32, Boolean) Create a new matrix with a type that can represent and is closest to both provided samples.
Public methodStatic memberSameAsT, TU(MatrixTU) Create a new matrix with the same kind and dimensions of the provided example.
Public methodStatic memberSameAsT, TU(MatrixTU, Int32, Int32, Boolean) Create a new matrix with the same kind of the provided example.
Public methodStatic memberSparseT(SparseCompressedRowMatrixStorageT) Create a new sparse matrix straight from an initialized matrix storage instance. The storage is used directly without copying. Intended for advanced scenarios where you're working directly with storage for performance or interop reasons.
Public methodStatic memberSparseT(Int32, Int32) Create a sparse matrix of T with the given number of rows and columns.
Public methodStatic memberSparseT(Int32, Int32, T) Create a new sparse matrix and initialize each value to the same provided value.
Public methodStatic memberSparseT(Int32, Int32, FuncInt32, Int32, T) Create a new sparse matrix and initialize each value using the provided init function.
Public methodStatic memberSparseDiagonalT(Int32, T) Create a new diagonal sparse matrix and initialize each diagonal value to the same provided value.
Public methodStatic memberSparseDiagonalT(Int32, Int32, T) Create a new diagonal sparse matrix and initialize each diagonal value to the same provided value.
Public methodStatic memberSparseDiagonalT(Int32, Int32, FuncInt32, T) Create a new diagonal sparse matrix and initialize each diagonal value using the provided init function.
Public methodStatic memberSparseFromCompressedSparseColumnFormatT Create a new sparse matrix from a compressed sparse column format. This new matrix will be independent from the given arrays. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseFromCompressedSparseRowFormatT Create a new sparse matrix from a compressed sparse row format. This new matrix will be independent from the given arrays. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseFromCoordinateFormatT Create a new sparse matrix from a coordinate format. This new matrix will be independent from the given arrays. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseIdentityT(Int32) Create a new diagonal dense identity matrix with a one-diagonal.
Public methodStatic memberSparseIdentityT(Int32, Int32) Create a new diagonal dense identity matrix with a one-diagonal.
Public methodStatic memberSparseOfArrayT Create a new sparse matrix as a copy of the given two-dimensional array. This new matrix will be independent from the provided array. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseOfColumnArraysT(IEnumerableT) Create a new sparse matrix as a copy of the given column arrays. This new matrix will be independent from the arrays. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseOfColumnArraysT(T) Create a new sparse matrix as a copy of the given column arrays. This new matrix will be independent from the arrays. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseOfColumnMajorT Create a new sparse matrix with the given number of rows and columns as a copy of the given array. The array is assumed to be in column-major order (column by column). This new matrix will be independent from the provided array. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseOfColumnsT(IEnumerableIEnumerableT) Create a new sparse matrix as a copy of the given enumerable of enumerable columns. Each enumerable in the master enumerable specifies a column. This new matrix will be independent from the enumerables. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseOfColumnsT(Int32, Int32, IEnumerableIEnumerableT) Create a new sparse matrix as a copy of the given enumerable of enumerable columns. Each enumerable in the master enumerable specifies a column. This new matrix will be independent from the enumerables. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseOfColumnVectorsT(IEnumerableVectorT) Create a new sparse matrix as a copy of the given column vectors. This new matrix will be independent from the vectors. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseOfColumnVectorsT(VectorT) Create a new sparse matrix as a copy of the given column vectors. This new matrix will be independent from the vectors. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseOfDiagonalArrayT(T) Create a new sparse matrix with the diagonal as a copy of the given array. This new matrix will be independent from the array. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseOfDiagonalArrayT(Int32, Int32, T) Create a new sparse matrix with the diagonal as a copy of the given array. This new matrix will be independent from the array. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseOfDiagonalVectorT(VectorT) Create a new sparse matrix with the diagonal as a copy of the given vector. This new matrix will be independent from the vector. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseOfDiagonalVectorT(Int32, Int32, VectorT) Create a new sparse matrix with the diagonal as a copy of the given vector. This new matrix will be independent from the vector. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseOfIndexedT(Int32, Int32, IEnumerableTupleInt32, Int32, T) Create a new sparse matrix as a copy of the given indexed enumerable. Keys must be provided at most once, zero is assumed if a key is omitted. This new matrix will be independent from the enumerable. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseOfIndexedT(Int32, Int32, IEnumerableValueTupleInt32, Int32, T) Create a new sparse matrix as a copy of the given indexed enumerable. Keys must be provided at most once, zero is assumed if a key is omitted. This new matrix will be independent from the enumerable. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseOfMatrixT Create a new sparse matrix as a copy of the given other matrix. This new matrix will be independent from the other matrix. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseOfMatrixArrayT Create a new sparse matrix from a 2D array of existing matrices. The matrices in the array are not required to be sparse already. If the matrices do not align properly, they are placed on the top left corner of their cell with the remaining fields left zero.
Public methodStatic memberSparseOfRowArraysT(IEnumerableT) Create a new sparse matrix as a copy of the given row arrays. This new matrix will be independent from the arrays. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseOfRowArraysT(T) Create a new sparse matrix as a copy of the given row arrays. This new matrix will be independent from the arrays. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseOfRowMajorT Create a new sparse matrix as a copy of the given enumerable. The enumerable is assumed to be in row-major order (row by row). This new matrix will be independent from the enumerable. A new memory block will be allocated for storing the vector.
Public methodStatic memberSparseOfRowsT(IEnumerableIEnumerableT) Create a new sparse matrix as a copy of the given enumerable of enumerable rows. Each enumerable in the master enumerable specifies a row. This new matrix will be independent from the enumerables. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseOfRowsT(Int32, Int32, IEnumerableIEnumerableT) Create a new sparse matrix as a copy of the given enumerable of enumerable rows. Each enumerable in the master enumerable specifies a row. This new matrix will be independent from the enumerables. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseOfRowVectorsT(IEnumerableVectorT) Create a new sparse matrix as a copy of the given row vectors. This new matrix will be independent from the vectors. A new memory block will be allocated for storing the matrix.
Public methodStatic memberSparseOfRowVectorsT(VectorT) Create a new sparse matrix as a copy of the given row vectors. This new matrix will be independent from the vectors. A new memory block will be allocated for storing the matrix.
Public methodStatic memberWithStorageT Create a new matrix straight from an initialized matrix storage instance. If you have an instance of a discrete storage type instead, use their direct methods instead.
Top
See Also