def
Vector.induction₂_temp
{α : Type u_2}
{β : Type u_3}
{motive : {n : ℕ} → Vector α n → Vector β n → Sort u_1}
(v_empty : motive #v[] #v[])
(v_insert :
{n : ℕ} →
(hd : α) →
(tl : Vector α n) →
(hd' : β) → (tl' : Vector β n) → motive tl tl' → motive (tl.insertIdx 0 hd ⋯) (tl'.insertIdx 0 hd' ⋯))
{m : ℕ}
(v : Vector α m)
(v' : Vector β m)
:
motive v v'
Equations
Instances For
theorem
Vector.foldl_eq_toList_foldl
{α : Type u_1}
{β : Type u_2}
{n : ℕ}
(f : β → α → β)
(init : β)
(v : Vector α n)
:
Inner product between two vectors of the same size. Should be faster than _root_.dotProduct
due to efficient operations on Vectors.
Equations
Instances For
Inner product between two vectors of the same size. Should be faster than _root_.dotProduct
due to efficient operations on Vectors.
Equations
Instances For
@[simp]
theorem
Vector.dotProduct_cons
{R : Type u_1}
{n : ℕ}
[AddCommMonoid R]
[Mul R]
(a : R)
(b : Vector R n)
(c : R)
(d : Vector R n)
:
A matrix represented as iterated vectors in row-major order.
m is the number of rows, and n is the number of columns
Equations
Instances For
@[simp]
theorem
dotProduct_cons
{R : Type u_1}
[AddCommMonoid R]
[Mul R]
{n : ℕ}
(a : R)
(b : Vector R n)
(c : R)
(d : Vector R n)
:
theorem
Vector.dotProduct_eq_root_dotProduct
{R : Type u_1}
[AddCommMonoid R]
[Mul R]
{n : ℕ}
(a b : Vector R n)
: