pub type DurationSecondTensor<'a> = Tensor<'a, DurationSecondType>;
Expand description
Tensor of type DurationSecondType
Aliased Type§
struct DurationSecondTensor<'a> { /* private fields */ }
Implementations
Source§impl<'a, T: ArrowPrimitiveType> Tensor<'a, T>
impl<'a, T: ArrowPrimitiveType> Tensor<'a, T>
Sourcepub fn try_new(
buffer: Buffer,
shape: Option<Vec<usize>>,
strides: Option<Vec<usize>>,
names: Option<Vec<&'a str>>,
) -> Result<Self>
pub fn try_new( buffer: Buffer, shape: Option<Vec<usize>>, strides: Option<Vec<usize>>, names: Option<Vec<&'a str>>, ) -> Result<Self>
Creates a new Tensor
Sourcepub fn new_row_major(
buffer: Buffer,
shape: Option<Vec<usize>>,
names: Option<Vec<&'a str>>,
) -> Result<Self>
pub fn new_row_major( buffer: Buffer, shape: Option<Vec<usize>>, names: Option<Vec<&'a str>>, ) -> Result<Self>
Creates a new Tensor using row major memory layout
Sourcepub fn new_column_major(
buffer: Buffer,
shape: Option<Vec<usize>>,
names: Option<Vec<&'a str>>,
) -> Result<Self>
pub fn new_column_major( buffer: Buffer, shape: Option<Vec<usize>>, names: Option<Vec<&'a str>>, ) -> Result<Self>
Creates a new Tensor using column major memory layout
Sourcepub fn strides(&self) -> Option<&Vec<usize>>
pub fn strides(&self) -> Option<&Vec<usize>>
The number of bytes between elements in each dimension
Sourcepub fn is_contiguous(&self) -> Result<bool>
pub fn is_contiguous(&self) -> Result<bool>
Indicates if the data is laid out contiguously in memory
Sourcepub fn is_row_major(&self) -> Result<bool>
pub fn is_row_major(&self) -> Result<bool>
Indicates if the memory layout row major
Sourcepub fn is_column_major(&self) -> Result<bool>
pub fn is_column_major(&self) -> Result<bool>
Indicates if the memory layout column major