示例#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);
 }