Пример #1
0
 public NArray(StorageLocation location, T[,] value)
 {
     Length      = value.Length;
     RowCount    = value.GetLength(0);
     ColumnCount = value.GetLength(1);
     _storage    = StorageCreator.NewStorage(location, value);
 }
Пример #2
0
 public NArray(StorageLocation location, int rowCount, int columnCount)
 {
     RowCount    = rowCount;
     ColumnCount = columnCount;
     Length      = RowCount * ColumnCount;
     _storage    = StorageCreator.NewStorage <T>(location, rowCount, columnCount);
 }
Пример #3
0
 public NArray(StorageLocation location, T[] value)
 {
     RowCount    = Length = value.Length;
     ColumnCount = 1;
     _storage    = StorageCreator.NewStorage(location, value);
 }
Пример #4
0
 public NArray(StorageLocation location, int length)
 {
     RowCount    = Length = length;
     ColumnCount = 1;
     _storage    = StorageCreator.NewStorage <T>(location, length, 1);
 }