PartitionedArrays.jl
PartitionedArrays.jl copied to clipboard
Implement scalar indexing and warning error message
Scalar indexing is not implemented for PVector and PSparseMatrix. Mainly since this is very inefficient and should be avoided . However, in some situations, it would be useful (e.g., for debugging). The functions implementing scalar indexing should print a big warning (similar as in CUDA.jl which also provides a mechanism to de-activate the warning)