@stdlib/ndarray-base-assert-is-safe-data-type-cast
Determine if an ndarray data type can be safely cast to another ndarray data type.
Found 469 results for stdtypes
Determine if an ndarray data type can be safely cast to another ndarray data type.
Return a list of ndarray data types to which a provided ndarray data type can be safely cast or cast within the same kind.
Typed array constructors.
Determine if an ndarray data type can be safely cast to, or is of the same kind as, another ndarray data type.
Return the number of ndarray dimensions.
List of ndarray casting modes.
Test if an input value is a supported array complex-valued floating-point data type.
Return the data type of a provided ndarray.
Return the data type of a provided ndarray.
Return the layout order of a provided ndarray.
Return a boolean indicating if the sign bit for a double-precision floating-point number is on (true) or off (false).
Test if an input value is a supported array boolean data type.
Convert an ndarray-like object to an object likely to have the same "shape".
List of strided array data types.
Determine if an ndarray data type can be cast to another ndarray data type according to a specified casting mode.
Return the data type of an ndarray data buffer.
Determine if an ndarray data type can be safely cast or, for floating-point data types, downcast to another ndarray data type.
Return a list of ndarray data types to which a provided ndarray data type can be safely cast and, for floating-point data types, can be downcast.
Create a typed array.
Wrap a function and casts a function's return value to a complex number.
Create an uninitialized array having a specified length.
Test if an input value is a supported ndarray casting mode.
Reorder ndarray dimensions and associated strides for loop interchange.
Multidimensional arrays.
Determine the minimum array data type for storing a provided signed integer value.
Test if an input value is a supported ndarray complex-valued floating-point data type.
Resolve a loop block size for multi-dimensional array tiled loops.
Test if an input value is a supported array real-valued data type.
Test if an input value is a supported array real-valued floating-point data type.
Test if an input value is a supported ndarray real-valued data type.
Test if an input value is a supported ndarray floating-point data type.
Test if an input value is a supported array signed integer data type.
Generate a linearly spaced numeric array whose elements increment by 1 starting from one.
Return the index of the first element which equals a provided search element.
Copy the elements of an array-like object to a new generic array.
Test if two arrays have the same values.
Return a specified flag for a provided ndarray.
Test if an input value is a supported ndarray unsigned integer data type.
Test if an ndarray is read-only.
Return the ndarray data type with the smallest size and closest kind to which ndarray data types can be safely cast.
Create an uninitialized ndarray having the same shape and data type as a provided ndarray.
Test if an input value is a supported ndarray signed integer data type.
Convert a scalar value to a zero-dimensional ndarray.
Test if an input value is a supported ndarray real-valued floating-point data type.
Test whether all elements in an array pass a test implemented by a predicate function.
Return the flags of a provided ndarray.
List of output ndarray data type policies.
Determine the minimum array data type of the closest kind necessary for storing a provided scalar value.
Create an uninitialized ndarray having a specified shape and data type.
Create a complex number.
Create an uninitialized ndarray having a specified shape and data type.
Create an iterator from an array-like object.
Create a zero-filled ndarray having a specified shape and data type.
Test if an input value is a supported ndarray integer data type.
Return the enumeration constant associated with a supported ndarray data type value.
Test if an input value is a supported ndarray numeric data type.
Resolve the output ndarray data type for a unary function.
Create a generic array filled with ones.
Create a single-precision floating-point number from an unsigned integer corresponding to an IEEE 754 binary representation.
Allocate a buffer using an octet array.
Slice constructor.
Convert a scalar value to a zero-dimensional ndarray.
Create a filled array.
Bitwise rotation to the right.
Broadcast an ndarray to a specified shape.
Reorder ndarray dimensions and associated strides for loop interchange.
Convert a signed 32-bit integer to an unsigned 32-bit integer.
Return the enumeration constant associated with a strided array data type string.
Create a filled array having a specified length.
Create a zero-filled ndarray having the same shape and data type as a provided ndarray.
Resolve a loop block size for multi-dimensional array tiled loops.
Convert a linear index to an array of subscripts.
Multi-slice constructor.
Create an array filled with ones and having a specified length.
Return the data type string associated with a strided array data type enumeration constant.
Create an uninitialized ndarray having the same shape and data type as a provided ndarray.
Reverse an array in-place.
Return a string giving the literal bit representation of a double-precision floating-point number.
Return the data type string associated with a supported strided array data type value.
Given a stride array, determine whether an array is row-major.
Return the enumeration constant associated with a supported strided array data type value.
Return a view of an input ndarray.
Transform a list of array argument data types into a list of signatures.
Broadcast an ndarray to a specified shape if and only if the specified shape differs from the provided ndarray's shape.
C API for returning the ndarray data type corresponding to a Node-API typed array type.
Create a filled two-dimensional nested array.
Create a filled two-dimensional nested array according to a provided callback function.
Return the next Cartesian index (i.e., set of subscripts/dimension indices).
Create a filled four-dimensional nested array.
Create a filled three-dimensional nested array.
Broadcast a scalar value to an ndarray having a specified shape.
Test if an input value is a BLAS memory layout.
Return a read-only view of an input ndarray.
Create a filled five-dimensional nested array.
Return a boolean indicating if the sign bit for a single-precision floating-point number is on (true) or off (false).
Create a filled four-dimensional nested array according to a provided callback function.
Create a zero-filled three-dimensional nested array.
Create a zero-filled two-dimensional nested array.
Create a filled three-dimensional nested array according to a provided callback function.
Create a filled five-dimensional nested array according to a provided callback function.
Group elements as arrays associated with distinct keys.
Create a zero-filled five-dimensional nested array.
Complex typed array constructors.
Create a zero-filled four-dimensional nested array.
Group element indices as arrays associated with distinct keys.
Group element entries as arrays associated with distinct keys.
Resolve a loop block size for multi-dimensional array tiled loops.
Generate a linearly spaced numeric array whose elements increment by 1 starting from zero.
Create a zero-filled ndarray having a specified shape and data type.
Return a list of array data types to which a provided array data type can be safely cast and, for floating-point data types, can be downcast.
Reorder ndarray dimensions and associated strides for loop interchange.
Determine if an array data type can be safely cast or, for floating-point data types, downcast to another array data type.
Convert an array to an array of a different data type.
Return the data type string associated with a provided single letter abbreviation.
Test if an input value is a supported ndarray boolean data type.
Determine if an array is row-major contiguous.
Create an array filled with NaNs and having a specified length.
Return the C data type associated with a provided data type value.
Return a string giving the literal bit representation of a single-precision floating-point number.
Return the description for a provided data type.
Determine the minimum ndarray data type of the closest kind necessary for storing a provided scalar value.
Determine if an array data type can be safely cast to another array data type.
Return a list of array data types to which a provided array data type can be safely cast.
Determine if an array is column-major contiguous.
Serialize ndarray meta data.
Convert a single-precision floating-point number to an unsigned 32-bit integer.
Return a normal number `y` and exponent `exp` satisfying `x = y * 2^exp`.
Generate a list of binary interface signatures from strided array data types.
Define non-enumerable read-only properties which expose ndarray function meta data.
Return an integer corresponding to the significand of a single-precision floating-point number.
Assign callbacks to binary interfaces according to type promotion rules.
List of typed array real-valued floating-point data types.
Return an integer corresponding to the unbiased exponent of a single-precision floating-point number.
Assign element values from a broadcasted input array to corresponding elements in an output array.
Create a single-precision floating-point number from a literal bit representation.
Determine if an array is compatible with a single memory segment.
Determine if an array is contiguous.
Count the number of truthy elements in an array.
Broadcast array shapes to a single shape.
Return the number of elements in an ndarray.
Count the number of falsy elements in an array.
Wrap a function accepting complex number arguments to support providing both real and complex numbers.
Convert an array to an object supporting fancy indexing.
Given a stride array, determine whether an array is column-major.
Remove singleton dimensions.
Return a shallow copy of a portion of an array.
Create a filled n-dimensional nested array.
Test if an input value is a supported array unsigned integer data type.
Compute the maximum linear index in an underlying data buffer accessible to an array view.
Return a string giving the literal bit representation of an unsigned 8-bit integer.
Broadcast ndarrays to a common shape.
List of typed array real-valued data types.
Convert a single-precision floating-point number to a signed 32-bit integer.
Typed array constructors.
Array index constructor.
Compute the minimum linear index in an underlying data buffer accessible to an array view.
Base double-precision floating-point number assert functions.
Convert a signed 64-bit integer byte array to a double-precision floating-point number.
Create a single-element array containing a provided scalar value.
Base ndarray assertion utilities.
Determine if a buffer length is compatible with a provided shape array.
Create a zero-filled ndarray having the same shape and data type as a provided ndarray.
Count the number of elements in an array that are equal to a specified value.
Return a shifted view of an input ndarray along a specific dimension.
Prepend singleton dimensions.
Transpose a matrix (or a stack of matrices).
Return the number of non-singleton dimensions.
Return a view of an input ndarray in which the order of elements along a specified dimension is reversed.
Return a shifted view of an input ndarray.
Allocate a buffer from an ArrayBuffer.
Assign element values from a broadcasted input ndarray to corresponding elements in an output ndarray view.
Return a view of an input ndarray in which the order of elements along each dimension is reversed.
Convert a double-precision floating-point number to a signed 32-bit integer.
Return a truncated view of an input ndarray along a specific dimension.
Convert a linear index in an underlying data buffer to a linear index in an array view.
Convert subscripts to a linear index.
Return the data type string associated with an ndarray data type enumeration constant.
Expand the shape of an array by inserting a new dimension of size one at a specified axis.
Utilities for signed 32-bit integers.
Return the number of singleton dimensions.
Test if an input value is a BLAS matrix triangle.
Return the data type enumeration constant of an ndarray data buffer.
Return a string giving the literal bit representation of an unsigned 32-bit integer.
Base (i.e., lower-level) single-precision complex number assertion functions.
Return the enumeration constant associated with an output ndarray data type policy string.
Return a view of an input ndarray when sliced along a specified dimension.
Convert a double-precision floating-point number to an unsigned 32-bit integer.
Return a truncated view of an input ndarray.
List of typed array data types.
Return a view of an input ndarray in which the order of elements along the second-to-last dimension is reversed.
Broadcast ndarrays to a common shape.
Return the enumeration constant associated with a supported ndarray data type policy value.
Return the enumeration constant associated with a BLAS matrix triangle.
Create a zero-filled n-dimensional nested array.
Return the policy string associated with a supported ndarray data type policy value.
Create an uninitialized array having the same length and data type as a provided array.
Generate a list of masked unary interface signatures from strided array data types.
Count the number of elements in an array which pass a test implemented by a predicate function.
Return a view of an input ndarray in which the order of elements along the last dimension is reversed.
Create a double-precision floating-point number from a literal bit representation.
Create an unsigned 8-bit integer from a literal bit representation.
Base utilities for single-precision floating-point numbers.
Split element values into two groups according to a predicate function.
Create a three-dimensional nested array filled with ones.
Create an iterator which returns [index, matrix] pairs for each matrix in a stack of matrices.
Return a list of array data types to which a provided array data type can be safely cast or cast within the same kind.
Return a shallow copy of an array containing only those elements which pass a test implemented by a predicate function.
Bitwise rotation to the left.
Create an iterator which repeatedly iterates over the elements of an array-like object.
Base (i.e., lower-level) single-precision complex number functions.
Base utilities for signed 32-bit integers.
Create an iterator which returns [index, value] pairs for each element in a provided ndarray.
Cumulatively test whether every element in a provided array is truthy.
Create an iterator which returns indices for use indexing into an ndarray having a specified shape.
List of complex typed array data types.
Test whether all elements in an array are falsy.
Count the number of elements in an array that are equal to a specified value.
Return the size (i.e., number of elements) of a specified dimension for a provided ndarray.
Return a JSON representation of a number.
Create an iterator which returns [index, column] pairs for each column in a matrix (or stack of matrices).
Test whether at least one element in an array is truthy.
Return a shallow copy of a portion of an array.
Determine the minimum array data type for storing a provided unsigned integer value.
Return the last element of an array-like object.
Return a shallow copy of an array containing only those elements which fail a test implemented by a predicate function.
Base ndarray.
Create an iterator which returns [index, row] pairs for each row in a matrix (or stack of matrices).
Test if an input value is a BLAS diagonal type.
Base utilities for double-precision floating-point numbers.
Test if an input value is a supported array data type.
Create an iterator which returns individual elements from a provided ndarray.
Test if an input value is a supported array numeric data type.
Revive a JSON-serialized Buffer.
Convert subscripts to a linear index.
Create a filled n-dimensional nested array according to a provided callback function.
Split array element values into two groups.
Test if an input value is a BLAS transpose operation.
Base (i.e., lower-level) double-precision complex number functions.
Array constants.
Parse a string representation of a 128-bit complex number.
Create an iterator from a sparse array-like object.
Error tools.
Broadcast an ndarray to a specified shape.
Test if an input value is a supported array floating-point data type.
Return the index of the last element which equals a provided search element.
Create a two-dimensional nested array filled with ones.
Create a five-dimensional nested array filled with ones.
Return the array data type with the smallest size and closest kind to which array data types can be safely cast.
Create a four-dimensional nested array filled with ones.
Test whether all elements in an array pass a test implemented by a predicate function, iterating from right to left.