custos 0.7.0

A minimal OpenCL, WGPU, CUDA and host CPU array manipulation engine.
Documentation
1
2
3
4
5
use custos::{Buffer, Device, Shape};

pub trait Transpose<T, D: Device, I: Shape = (), O: Shape = ()>: Device {
    fn transpose(&self, buf: Buffer<T, D, I>) -> Buffer<T, Self, O>;
}