示例#1
0
文件: Matrix.cs 项目: mmaverikk/Cytos
 /// <summary>
 /// Initializes a new instance of the Matrix class.
 /// </summary>
 protected Matrix(MatrixStorage <Complex32> storage)
     : base(storage)
 {
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the Matrix class.
 /// </summary>
 protected Matrix(MatrixStorage <float> storage)
     : base(storage)
 {
 }
示例#3
0
 /// <summary>
 /// 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.
 /// </summary>
 public static Matrix <T> WithStorage <T>(MatrixStorage <T> storage)
     where T : struct, IEquatable <T>, IFormattable
 {
     return(Matrix <T> .Build.OfStorage(storage));
 }
 /// <summary>
 ///     Initializes a new instance of the Matrix class.
 /// </summary>
 protected Matrix(MatrixStorage <double> storage)
     : base(storage)
 {
 }
 private ImmutableMatrix(MatrixStorage<double> storage)
     : base(storage)
 {
 }
示例#6
0
 /// <summary>
 ///     Initializes a new instance of the Matrix class.
 /// </summary>
 protected Matrix(MatrixStorage <T> storage)
 {
     Storage     = storage;
     RowCount    = storage.RowCount;
     ColumnCount = storage.ColumnCount;
 }
示例#7
0
 private ImmutableMatrix(MatrixStorage <double> storage) : base(storage)
 {
 }
示例#8
0
 public Matrix(int columns, int rows, MatrixStorage <T> storage)
 {
     _storage = storage;
 }
示例#9
0
 public ReadOnlyMatrixStorage(MatrixStorage <T> matrixStorage)
     : base(matrixStorage.RowCount, matrixStorage.ColumnCount)
 {
     _matrixStorage = matrixStorage;
 }