mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-01 13:10:16 +02:00
Fix bug in skin, add some complex stuff to math and tests
This commit is contained in:
13
arrays.scad
13
arrays.scad
@@ -1682,4 +1682,17 @@ function transpose(arr, reverse=false) =
|
||||
arr;
|
||||
|
||||
|
||||
// Function: is_matrix_symmetric()
|
||||
// Usage:
|
||||
// b = is_matrix_symmetric(A,<eps>)
|
||||
// Description:
|
||||
// Returns true if the input matrix is symmetric, meaning it equals its transpose.
|
||||
// Matrix should have numerical entries.
|
||||
// Arguments:
|
||||
// A = matrix to test
|
||||
// eps = epsilon for comparing equality. Default: 1e-12
|
||||
function is_matrix_symmetric(A,eps=1e-12) =
|
||||
approx(A,transpose(A));
|
||||
|
||||
|
||||
// vim: expandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap
|
||||
|
Reference in New Issue
Block a user