Skip to content
This repository was archived by the owner on Feb 24, 2023. It is now read-only.

update examples #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions examples/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ fn main() {

d_array(&arr, &mut d_arr, 1.0);

dbg!(array(&arr));
dbg!(&d_arr);
}
3 changes: 2 additions & 1 deletion examples/sin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ fn main() {
cos_inplace(&a, &mut da, &mut y, &1.0);

dbg!(&a, &da);
assert!(da - f32::cos(3.14) == 0.0);
dbg!(da - f32::cos(a));
assert!(da - f32::cos(a) == 0.0);
}

// Just for curious readers, this is the (inner) function that Enzyme does generate:
Expand Down