-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce
RowVector
as the transpose of a vector (#19670)
* Moved all array transpose functions to LinAlg Transposition is a concept of linear algebra rather than multidimensional arrays of data. * Introduce `RowVector` as vector transpose `RowVector` is now defined as the `transpose` of any `AbstractVector`. If `v` is an `AbstractVector`, then it obeys the identity that `(v.').' === v` and the matrix multiplication rules follow that `(A * v).' == (v.' * A.')`. `RowVector` is a "view" and maintains the recursive nature of `transpose`. It is a subtype of `AbstractMatrix` and maintains the current shape and broadcast behavior for `v.'. Consequences include: * v'' is a vector, not a matrix * v'*v is a scalar, not a vector * v*v' is the outer produce (returns a matrix) * v*A (for A::AbstractMatrix) is removed, since its puprose was to provide a way of doing the outer product above, and is no longer necessary. Closes #4774
- Loading branch information
1 parent
aa2ea55
commit 3d6fa35
Showing
32 changed files
with
833 additions
and
283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.