Skip to content

Instantly share code, notes, and snippets.

🦄
persona non stata

Kevin Donahue nonnontrivial

🦄
persona non stata
Block or report user

Report or block nonnontrivial

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View are_orthogonal_vectors.rs
use ndarray::*;
use ndarray_linalg::Scalar;
use std::error::Error;
/// determines if the dot product of two vectors is zero
fn are_orthogonal_vectors<A, S>(a: &ArrayBase<S, Ix1>, b: &ArrayBase<S, Ix1>) -> bool
where
A: Scalar,
S: Data<Elem = A>,
{
You can’t perform that action at this time.