-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
84 additions
and
19 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
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ ma = library("maths.lib"); | |
si = library("signals.lib"); | ||
|
||
declare name "Faust Signal Routing Library"; | ||
declare version "1.5.0"; | ||
declare version "1.6.0"; | ||
|
||
//=============================Functions Reference======================================== | ||
//======================================================================================== | ||
|
@@ -569,14 +569,12 @@ vecOp(vectorsList, op) = | |
vecLen = outputs(ba.take(1, vectorsList)); | ||
}; | ||
|
||
|
||
/* | ||
Balanced par, sum, and prod, faster versions of built-in par, sum, prod | ||
when the repeated expression doesn't depend on the variable. | ||
*/ | ||
|
||
// -----------------------------`(si.)bpar`--------------------------------- | ||
// | ||
//-------------`(si.)bpar`--------------- | ||
// Balanced `par` where the repeated expression doesn't depend on a variable. | ||
// The built-in `par` is implemented as an unbalanced tree, and also has | ||
// to substitute the variable into the repeated expression, which is expensive | ||
|
@@ -600,6 +598,8 @@ when the repeated expression doesn't depend on the variable. | |
// // square each of 4000 inputs | ||
// process = si.bpar(4000, (_ <: _, _ : *)); | ||
// ``` | ||
// | ||
//------------------------------------------ | ||
declare bpar author "Haggai Nuchi"; | ||
declare bpar copyright "Copyright (C) 2024 Haggai Nuchi <[email protected]>"; | ||
declare bpar license "MIT License"; | ||
|
@@ -609,8 +609,7 @@ bpar(N, f) = bpar(left, f), bpar(right, f) with { | |
right = N - left; | ||
}; | ||
|
||
// -----------------------------`(si.)bsum`--------------------------------- | ||
// | ||
//-------------`(si.)bsum`--------------- | ||
// Balanced `sum`, see `si.bpar`. | ||
// | ||
// #### Usage | ||
|
@@ -629,6 +628,7 @@ bpar(N, f) = bpar(left, f), bpar(right, f) with { | |
// // square each of 1000 inputs and add the results | ||
// process = si.bsum(1000, (_ <: _, _ : *)); | ||
// ``` | ||
//---------------------------------------------------- | ||
declare bsum author "Haggai Nuchi"; | ||
declare bsum copyright "Copyright (C) 2024 Haggai Nuchi <[email protected]>"; | ||
declare bsum license "MIT License"; | ||
|
@@ -638,8 +638,7 @@ bsum(N, f) = bsum(left, f) + bsum(right, f) with { | |
right = N - left; | ||
}; | ||
|
||
// -----------------------------`(si.)bprod`-------------------------------- | ||
// | ||
//-------------`(si.)bprod`--------------- | ||
// Balanced `prod`, see `si.bpar`. | ||
// | ||
// #### Usage | ||
|
@@ -658,6 +657,7 @@ bsum(N, f) = bsum(left, f) + bsum(right, f) with { | |
// // Add 8000 consecutive inputs (in pairs) and multiply the results | ||
// process = si.bprod(4000, +); | ||
// ``` | ||
//---------------------------------------------------- | ||
declare bprod author "Haggai Nuchi"; | ||
declare bprod copyright "Copyright (C) 2024 Haggai Nuchi <[email protected]>"; | ||
declare bprod license "MIT License"; | ||
|
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