public NArray(StorageLocation location, T[,] value) { Length = value.Length; RowCount = value.GetLength(0); ColumnCount = value.GetLength(1); _storage = StorageCreator.NewStorage(location, value); }
public NArray(StorageLocation location, int rowCount, int columnCount) { RowCount = rowCount; ColumnCount = columnCount; Length = RowCount * ColumnCount; _storage = StorageCreator.NewStorage <T>(location, rowCount, columnCount); }
public NArray(StorageLocation location, T[] value) { RowCount = Length = value.Length; ColumnCount = 1; _storage = StorageCreator.NewStorage(location, value); }
public NArray(StorageLocation location, int length) { RowCount = Length = length; ColumnCount = 1; _storage = StorageCreator.NewStorage <T>(location, length, 1); }