Cache
You can cache the calculation result of Gain
by with_cache
method.
use autd3::prelude::*;
#[allow(unused_variables)]
fn main() {
let g = Null::new().with_cache();
}
#include<autd3.hpp>
int main() {
const auto g = autd3::gain::Null().with_cache();
return 0; }
using AUTD3Sharp.Gain;
var g = new Null().WithCache();
from pyautd3.gain import Null
g = Null().with_cache()