You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Type(dims) constructors for Bidiagonal, Tridiagonal, and
SymTridiagonal
For Type in Bidiagonal, Tridiagonal, SymTridiagonal, support the
following:
Type(::Dims{2})
Type(::Integer, ::Integer)
Type{T}(::Dims{2})
Type{T}(::Integer, ::Integer)
Bidiagonal(dv::AbstractVector, ev::AbstractVector) =throw(ArgumentError("did you want an upper or lower Bidiagonal? Try again with an additional true (upper) or false (lower) argument."))
57
63
64
+
"""
65
+
Bidiagonal{T}(dims)
66
+
67
+
Constructs a bidiagonal matrix with uninitialized diagonal and off-diagonal elements of
68
+
type `T`. If `T` is omitted, it defaults to `Float64`. The dims may be given as two integer
69
+
arguments or as tuple of two `Int`s, both of which have to be equal as `Bidiagonal`
Copy file name to clipboardExpand all lines: doc/stdlib/linalg.rst
+18
Original file line number
Diff line number
Diff line change
@@ -317,6 +317,12 @@ Linear algebra functions in Julia are largely implemented by calling functions f
317
317
⋅ 3 3 ⋅
318
318
⋅ ⋅ 4 4
319
319
320
+
.. function:: Bidiagonal{T}(dims)
321
+
322
+
.. Docstring generated from Julia source
323
+
324
+
Constructs a bidiagonal matrix with uninitialized diagonal and off-diagonal elements of type ``T``\ . If ``T`` is omitted, it defaults to ``Float64``\ . The dims may be given as two integer arguments or as tuple of two ``Int``\ s, both of which have to be equal as ``Bidiagonal`` matrices are always square.
325
+
320
326
.. function:: SymTridiagonal(dv, ev)
321
327
322
328
.. Docstring generated from Julia source
@@ -347,6 +353,12 @@ Linear algebra functions in Julia are largely implemented by calling functions f
347
353
⋅ 8 3 9
348
354
⋅ ⋅ 9 4
349
355
356
+
.. function:: SymTridiagonal{T}(dims)
357
+
358
+
.. Docstring generated from Julia source
359
+
360
+
Constructs a symmetric tridiagonal matrix with uninitialized diagonal and sub/super–diagonal elements of type ``T``\ . If ``T`` is omitted, it defaults to ``Float64``\ . The dims may be given as two integer arguments or as tuple of two ``Int``\ s, both of which have to be equal as ``SymTridiagonal`` matrices are always square.
361
+
350
362
.. function:: Tridiagonal(dl, d, du)
351
363
352
364
.. Docstring generated from Julia source
@@ -383,6 +395,12 @@ Linear algebra functions in Julia are largely implemented by calling functions f
383
395
⋅ 2 9 6
384
396
⋅ ⋅ 3 0
385
397
398
+
.. function:: Tridiagonal{T}(dims)
399
+
400
+
.. Docstring generated from Julia source
401
+
402
+
Constructs a tridiagonal matrix with uninitialized diagonal and sub/super–diagonal elements of type ``T``\ . If ``T`` is omitted, it defaults to ``Float64``\ . The dims may be given as two integer arguments or as tuple of two ``Int``\ s, both of which have to be equal as ``Tridiagonal`` matrices are always square.
0 commit comments