Registry / Library

library · v0.1.1
Matrix Diag Sum
Sum the principal diagonal of a rectangular row-major matrix after validating its flattened length.
Use Matrix Diag Sum
use vendor::matrix_diag_sum::matrix_diag_sum;
Run the example
nest demo matrix_diag_sum@0.1.1
blyxc native-run matrix_diag_sum-demo/main.blyx
Example source and expected output
use vendor::matrix_diag_sum::matrix_diag_sum;
fn main() {
println!(matrix_diag_sum([1,2,3,4,5,6],2,3));
}
Expected output
6
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | a35aa8fccd | 7f01ed973005a5864a18f42daae7394fb987e962a75a962dc6eb7cffd1fa30e9 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | de7c224fc835091020f6b6d1b676f72a06aa409292711e25e5cf3c7c1a32ea77 |