Struct arrow::tensor::Tensor [−][src]
pub struct Tensor<'a, T: ArrowPrimitiveType> { /* fields omitted */ }
Expand description
Tensor of primitive types
Implementations
impl<'a, T: ArrowPrimitiveType> Tensor<'a, T>
[src]
impl<'a, T: ArrowPrimitiveType> Tensor<'a, T>
[src]pub fn try_new(
buffer: Buffer,
shape: Option<Vec<usize>>,
strides: Option<Vec<usize>>,
names: Option<Vec<&'a str>>
) -> Result<Self>
[src]
pub fn try_new(
buffer: Buffer,
shape: Option<Vec<usize>>,
strides: Option<Vec<usize>>,
names: Option<Vec<&'a str>>
) -> Result<Self>
[src]Creates a new Tensor
pub fn new_row_major(
buffer: Buffer,
shape: Option<Vec<usize>>,
names: Option<Vec<&'a str>>
) -> Result<Self>
[src]
pub fn new_row_major(
buffer: Buffer,
shape: Option<Vec<usize>>,
names: Option<Vec<&'a str>>
) -> Result<Self>
[src]Creates a new Tensor using row major memory layout
pub fn new_column_major(
buffer: Buffer,
shape: Option<Vec<usize>>,
names: Option<Vec<&'a str>>
) -> Result<Self>
[src]
pub fn new_column_major(
buffer: Buffer,
shape: Option<Vec<usize>>,
names: Option<Vec<&'a str>>
) -> Result<Self>
[src]Creates a new Tensor using column major memory layout
pub fn strides(&self) -> Option<&Vec<usize>>
[src]
pub fn strides(&self) -> Option<&Vec<usize>>
[src]The number of bytes between elements in each dimension
pub fn is_contiguous(&self) -> Result<bool>
[src]
pub fn is_contiguous(&self) -> Result<bool>
[src]Indicates if the data is laid out contiguously in memory
pub fn is_row_major(&self) -> Result<bool>
[src]
pub fn is_row_major(&self) -> Result<bool>
[src]Indicates if the memory layout row major
pub fn is_column_major(&self) -> Result<bool>
[src]
pub fn is_column_major(&self) -> Result<bool>
[src]Indicates if the memory layout column major
Trait Implementations
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Tensor<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> Send for Tensor<'a, T> where
T: Send,
T: Send,
impl<'a, T> Sync for Tensor<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for Tensor<'a, T> where
T: Unpin,
T: Unpin,
impl<'a, T> UnwindSafe for Tensor<'a, T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,