pycauset.empty
Allocate a vector or matrix without guaranteeing initialization.
Note: for some backends this may still be zero-initialized.
dtype is required.
Parameters
-
shape (int or tuple):
nallocates a length-nvector.(n,)allocates a length-nvector.(n, m)allocates ann×mmatrix.
Notes: * Rectangular allocation is supported for dense numeric matrix types. *
dtype="bool"/dtype="bit"uses bit-packed storage (DenseBitMatrix) and supports rectangular(rows, cols)shapes. * dtype (str or type): Storage dtype token. * kwargs: Passed through to the backend allocator.
Returns
- VectorBase or MatrixBase: A newly allocated object.