dolfinx.cpp.la
Linear algebra module
Classes
|
|
|
|
|
|
|
|
|
Members: |
|
Members: |
|
Overloaded function. |
|
Overloaded function. |
|
Overloaded function. |
|
Overloaded function. |
|
Overloaded function. |
- class dolfinx.cpp.la.MatrixCSR_complex128(self: dolfinx.cpp.la.MatrixCSR_complex128, p: dolfinx.cpp.la.SparsityPattern)
Bases:
pybind11_object
- property data
- property dtype
- finalize(self: dolfinx.cpp.la.MatrixCSR_complex128) None
- finalize_begin(self: dolfinx.cpp.la.MatrixCSR_complex128) None
- finalize_end(self: dolfinx.cpp.la.MatrixCSR_complex128) None
- property indices
- property indptr
- mat_add_values(self: dolfinx.cpp.la.MatrixCSR_complex128) dolfinx::la::MatrixCSR<std::complex<double>, std::allocator<std::complex<double> > >::mat_add_values()::{lambda(std::span<int const, 18446744073709551615ul> const&, std::span<int const, 18446744073709551615ul> const&, std::span<std::complex<double> const, 18446744073709551615ul> const&)#1}
- norm_squared(self: dolfinx.cpp.la.MatrixCSR_complex128) float
- set(self: dolfinx.cpp.la.MatrixCSR_complex128, x: complex) None
- to_dense(self: dolfinx.cpp.la.MatrixCSR_complex128) numpy.ndarray[numpy.complex128]
- class dolfinx.cpp.la.MatrixCSR_complex64(self: dolfinx.cpp.la.MatrixCSR_complex64, p: dolfinx.cpp.la.SparsityPattern)
Bases:
pybind11_object
- property data
- property dtype
- finalize(self: dolfinx.cpp.la.MatrixCSR_complex64) None
- finalize_begin(self: dolfinx.cpp.la.MatrixCSR_complex64) None
- finalize_end(self: dolfinx.cpp.la.MatrixCSR_complex64) None
- property indices
- property indptr
- mat_add_values(self: dolfinx.cpp.la.MatrixCSR_complex64) dolfinx::la::MatrixCSR<std::complex<float>, std::allocator<std::complex<float> > >::mat_add_values()::{lambda(std::span<int const, 18446744073709551615ul> const&, std::span<int const, 18446744073709551615ul> const&, std::span<std::complex<float> const, 18446744073709551615ul> const&)#1}
- norm_squared(self: dolfinx.cpp.la.MatrixCSR_complex64) float
- set(self: dolfinx.cpp.la.MatrixCSR_complex64, x: complex) None
- to_dense(self: dolfinx.cpp.la.MatrixCSR_complex64) numpy.ndarray[numpy.complex64]
- class dolfinx.cpp.la.MatrixCSR_float32(self: dolfinx.cpp.la.MatrixCSR_float32, p: dolfinx.cpp.la.SparsityPattern)
Bases:
pybind11_object
- property data
- property dtype
- finalize(self: dolfinx.cpp.la.MatrixCSR_float32) None
- finalize_begin(self: dolfinx.cpp.la.MatrixCSR_float32) None
- finalize_end(self: dolfinx.cpp.la.MatrixCSR_float32) None
- property indices
- property indptr
- mat_add_values(self: dolfinx.cpp.la.MatrixCSR_float32) dolfinx::la::MatrixCSR<float, std::allocator<float> >::mat_add_values()::{lambda(std::span<int const, 18446744073709551615ul> const&, std::span<int const, 18446744073709551615ul> const&, std::span<float const, 18446744073709551615ul> const&)#1}
- norm_squared(self: dolfinx.cpp.la.MatrixCSR_float32) float
- set(self: dolfinx.cpp.la.MatrixCSR_float32, x: float) None
- to_dense(self: dolfinx.cpp.la.MatrixCSR_float32) numpy.ndarray[numpy.float32]
- class dolfinx.cpp.la.MatrixCSR_float64(self: dolfinx.cpp.la.MatrixCSR_float64, p: dolfinx.cpp.la.SparsityPattern)
Bases:
pybind11_object
- property data
- property dtype
- finalize(self: dolfinx.cpp.la.MatrixCSR_float64) None
- finalize_begin(self: dolfinx.cpp.la.MatrixCSR_float64) None
- finalize_end(self: dolfinx.cpp.la.MatrixCSR_float64) None
- property indices
- property indptr
- mat_add_values(self: dolfinx.cpp.la.MatrixCSR_float64) dolfinx::la::MatrixCSR<double, std::allocator<double> >::mat_add_values()::{lambda(std::span<int const, 18446744073709551615ul> const&, std::span<int const, 18446744073709551615ul> const&, std::span<double const, 18446744073709551615ul> const&)#1}
- norm_squared(self: dolfinx.cpp.la.MatrixCSR_float64) float
- set(self: dolfinx.cpp.la.MatrixCSR_float64, x: float) None
- to_dense(self: dolfinx.cpp.la.MatrixCSR_float64) numpy.ndarray[numpy.float64]
- class dolfinx.cpp.la.Norm(self: dolfinx.cpp.la.Norm, value: int)
Bases:
pybind11_object
Members:
l1
l2
linf
frobenius
- frobenius = <Norm.frobenius: 3>
- l1 = <Norm.l1: 0>
- l2 = <Norm.l2: 1>
- linf = <Norm.linf: 2>
- property name
- property value
- class dolfinx.cpp.la.ScatterMode(self: dolfinx.cpp.la.ScatterMode, value: int)
Bases:
pybind11_object
Members:
add
insert
- add = <ScatterMode.add: 0>
- insert = <ScatterMode.insert: 1>
- property name
- property value
- class dolfinx.cpp.la.SparsityPattern(*args, **kwargs)
Bases:
pybind11_object
Overloaded function.
__init__(self: dolfinx.cpp.la.SparsityPattern, comm: MPICommWrapper, maps: List[dolfinx.cpp.common.IndexMap[2]], bs: List[int[2]]) -> None
__init__(self: dolfinx.cpp.la.SparsityPattern, comm: MPICommWrapper, patterns: List[List[dolfinx.cpp.la.SparsityPattern]], maps: List[List[Tuple[dolfinx.cpp.common.IndexMap, int]][2]], bs: List[List[int][2]]) -> None
- assemble(self: dolfinx.cpp.la.SparsityPattern) None
- column_index_map(self: dolfinx.cpp.la.SparsityPattern) dolfinx.cpp.common.IndexMap
- property graph
- index_map(self: dolfinx.cpp.la.SparsityPattern, dim: int) dolfinx.cpp.common.IndexMap
- insert(self: dolfinx.cpp.la.SparsityPattern, rows: numpy.ndarray[numpy.int32], cols: numpy.ndarray[numpy.int32]) None
- insert_diagonal(self: dolfinx.cpp.la.SparsityPattern, rows: numpy.ndarray[numpy.int32]) None
- property num_nonzeros
- class dolfinx.cpp.la.Vector_complex128(*args, **kwargs)
Bases:
pybind11_object
Overloaded function.
__init__(self: dolfinx.cpp.la.Vector_complex128, map: dolfinx.cpp.common.IndexMap, bs: int) -> None
__init__(self: dolfinx.cpp.la.Vector_complex128, vec: dolfinx.cpp.la.Vector_complex128) -> None
- property array
- property bs
- property dtype
- property map
- norm(self: dolfinx.cpp.la.Vector_complex128, type: dolfinx.cpp.la.Norm = <Norm.l2: 1>) float
- scatter_forward(self: dolfinx.cpp.la.Vector_complex128) None
- scatter_reverse(self: dolfinx.cpp.la.Vector_complex128, mode: dolfinx.cpp.la.ScatterMode) None
- set(self: dolfinx.cpp.la.Vector_complex128, v: complex) None
- class dolfinx.cpp.la.Vector_complex64(*args, **kwargs)
Bases:
pybind11_object
Overloaded function.
__init__(self: dolfinx.cpp.la.Vector_complex64, map: dolfinx.cpp.common.IndexMap, bs: int) -> None
__init__(self: dolfinx.cpp.la.Vector_complex64, vec: dolfinx.cpp.la.Vector_complex64) -> None
- property array
- property bs
- property dtype
- property map
- norm(self: dolfinx.cpp.la.Vector_complex64, type: dolfinx.cpp.la.Norm = <Norm.l2: 1>) float
- scatter_forward(self: dolfinx.cpp.la.Vector_complex64) None
- scatter_reverse(self: dolfinx.cpp.la.Vector_complex64, mode: dolfinx.cpp.la.ScatterMode) None
- set(self: dolfinx.cpp.la.Vector_complex64, v: complex) None
- class dolfinx.cpp.la.Vector_float32(*args, **kwargs)
Bases:
pybind11_object
Overloaded function.
__init__(self: dolfinx.cpp.la.Vector_float32, map: dolfinx.cpp.common.IndexMap, bs: int) -> None
__init__(self: dolfinx.cpp.la.Vector_float32, vec: dolfinx.cpp.la.Vector_float32) -> None
- property array
- property bs
- property dtype
- property map
- norm(self: dolfinx.cpp.la.Vector_float32, type: dolfinx.cpp.la.Norm = <Norm.l2: 1>) float
- scatter_forward(self: dolfinx.cpp.la.Vector_float32) None
- scatter_reverse(self: dolfinx.cpp.la.Vector_float32, mode: dolfinx.cpp.la.ScatterMode) None
- set(self: dolfinx.cpp.la.Vector_float32, v: float) None
- class dolfinx.cpp.la.Vector_float64(*args, **kwargs)
Bases:
pybind11_object
Overloaded function.
__init__(self: dolfinx.cpp.la.Vector_float64, map: dolfinx.cpp.common.IndexMap, bs: int) -> None
__init__(self: dolfinx.cpp.la.Vector_float64, vec: dolfinx.cpp.la.Vector_float64) -> None
- property array
- property bs
- property dtype
- property map
- norm(self: dolfinx.cpp.la.Vector_float64, type: dolfinx.cpp.la.Norm = <Norm.l2: 1>) float
- scatter_forward(self: dolfinx.cpp.la.Vector_float64) None
- scatter_reverse(self: dolfinx.cpp.la.Vector_float64, mode: dolfinx.cpp.la.ScatterMode) None
- set(self: dolfinx.cpp.la.Vector_float64, v: float) None