Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "bten"
name = "cten"
version = "0.1.0"
edition = "2024"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ pub fn stack(tensors: Vec<Rc<dyn BoxedTensor>>, dim: usize) -> RightComposition<
}

/// Reads `input` where `condition` is not zero and `other` where it is. torch's
/// `where` takes a boolean condition; bten's tensors hold floats, so zero stands
/// `where` takes a boolean condition; cten's tensors hold floats, so zero stands
/// for false. `where` is a Rust keyword, hence the underscore.
pub fn where_(
condition: Rc<dyn BoxedTensor>,
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::rc::Rc;

use bten::{
use cten::{
COO, HRect, Physical, Product, RightComposition, Stride, Sum, Sup, Tensor, diagonalize, eye,
movedim, negate, ones, square, transpose, zeros,
};
Expand Down
2 changes: 1 addition & 1 deletion tests/display.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::rc::Rc;

use bten::{
use cten::{
COO, Diagonal, HRect, Physical, RightComposition, Stride, Sum, Sup, Tensor, format_boxed,
};

Expand Down
2 changes: 1 addition & 1 deletion tests/domain.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use bten::{Domain, HRect, JaggedDomain};
use cten::{Domain, HRect, JaggedDomain};

#[test]
fn a_hrect_holds_exactly_the_indices_within_its_shape() {
Expand Down
2 changes: 1 addition & 1 deletion tests/functions.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::rc::Rc;

use bten::{
use cten::{
BoxedTensor, COO, Domain, HRect, Physical, RightComposition, Stride, Sum, Tensor, clamp,
concatenate, diagonalize, eye, eye_rect, mm, movedim, negate, ones, permute, pow, prod, scale,
sparse_coo_tensor, square, squeeze, stack, sum, transpose, unsqueeze, where_, zeros,
Expand Down
2 changes: 1 addition & 1 deletion tests/logic.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::rc::Rc;

use bten::{
use cten::{
COO, Diagonal, EmptyMapping, HRect, Inf, LeftComposition, Physical, PowersetMapping, Product,
RightComposition, Stride, Sum, Sup, Tensor,
};
Expand Down
2 changes: 1 addition & 1 deletion tests/mapping.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{assert_eq, rc::Rc};

use bten::{
use cten::{
COO, Concat, Diagonal, EmptyMapping, HRect, IndexMapping, InvProjection, JaggedDomain,
Permutation, Physical, Powerset, PowersetMapping, Projection, Squeeze, Stride, Unsqueeze,
Where,
Expand Down
2 changes: 1 addition & 1 deletion tests/tensor.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::rc::Rc;

use bten::{
use cten::{
BoxedTensor, COO, Diagonal, HRect, JaggedTensor, LeftComposition, Physical, RightComposition,
Stride, Sum, Tensor,
};
Expand Down
Loading