mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-11 22:04:22 +02:00
strip down apply() so projections are banned, and 2d acting on 3d is
banned. clarify docs
This commit is contained in:
@@ -94,11 +94,11 @@ module echo_matrix(M,description,sig=4,eps=1e-9)
|
||||
// Topics: Matrices, List Handling
|
||||
// See Also: select(), slice()
|
||||
// Description:
|
||||
// Extracts entry i from each list in M, or equivalently column i from the matrix M, and returns it as a vector.
|
||||
// Extracts entry `i` from each list in M, or equivalently column i from the matrix M, and returns it as a vector.
|
||||
// This function will return `undef` at all entry positions indexed by i not found in M.
|
||||
// Arguments:
|
||||
// M = The given list of lists.
|
||||
// idx = The index, list of indices, or range of indices to fetch.
|
||||
// i = The index to fetch
|
||||
// Example:
|
||||
// M = [[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,16]];
|
||||
// a = column(M,2); // Returns [3, 7, 11, 15]
|
||||
@@ -114,7 +114,6 @@ function column(M, i) =
|
||||
[for(row=M) row[i]];
|
||||
|
||||
|
||||
|
||||
// Function: submatrix()
|
||||
// Usage:
|
||||
// mat = submatrix(M, idx1, idx2);
|
||||
|
Reference in New Issue
Block a user