rittenhop-dev/versions/5.94.2/node_modules/@stdlib/complex-float64-ctor/dist/index.js

20 lines
1.9 KiB
JavaScript
Raw Normal View History

2024-09-23 19:40:12 -04:00
"use strict";var o=function(e,r){return function(){return r||e((r={exports:{}}).exports,r),r.exports}};var s=o(function(S,n){"use strict";function v(){var e=""+this.re;return this.im<0?e+=" - "+-this.im:e+=" + "+this.im,e+="i",e}n.exports=v});var a=o(function(d,u){"use strict";function c(){var e={};return e.type="Complex128",e.re=this.re,e.im=this.im,e}u.exports=c});var h=o(function(q,f){"use strict";var l=require("@stdlib/assert-is-number").isPrimitive,m=require("@stdlib/utils-define-property"),i=require("@stdlib/utils-define-nonenumerable-read-only-property"),p=require("@stdlib/string-format"),b=s(),y=a();function t(e,r){if(!(this instanceof t))throw new TypeError("invalid invocation. Constructor must be called with the `new` keyword.");if(!l(e))throw new TypeError(p("invalid argument. Real component must be a number. Value: `%s`.",e));if(!l(r))throw new TypeError(p("invalid argument. Imaginary component must be a number. Value: `%s`.",r));return m(this,"re",{configurable:!1,enumerable:!0,writable:!1,value:e}),m(this,"im",{configurable:!1,enumerable:!0,writable:!1,value:r}),this}i(t,"BYTES_PER_ELEMENT",8);i(t.prototype,"BYTES_PER_ELEMENT",8);i(t.prototype,"byteLength",16);i(t.prototype,"toString",b);i(t.prototype,"toJSON",y);f.exports=t});var E=h();module.exports=E;
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
//# sourceMappingURL=index.js.map