IntVector¶
- class psi4.core.IntVector¶
Bases:
ProtoIntVector
Class handling vectors with integer values
Attributes Summary
The name of the IntVector.
Methods Summary
add
(*args, **kwargs)Overloaded function.
clone
(self)Clone the vector
copy
(self, arg0)Copy another vector into this.
dim
(self[, h])Returns the number of dimensions per irrep h
dimpi
(self)Returns the Dimension object
get
(*args, **kwargs)Overloaded function.
get_block
(self, slice)Get a vector block
init
(self, arg0)Reallocate the data of the Vector.
iota
(arg0)nirrep
(self)Returns the number of irreps
print_out
(self)Prints the vector to the output file
set
(*args, **kwargs)Overloaded function.
set_block
(self, slice, block)Set a vector block
zero
(self)Zeros the vector
Attributes Documentation
- name¶
The name of the IntVector. Used in printing.
Methods Documentation
- add(*args, **kwargs)¶
Overloaded function.
add(self: psi4.core.IntVector, m: int, val: int) -> None
Add to a single element value located at m
add(self: psi4.core.IntVector, h: int, m: int, val: int) -> None
Add to a single element value located at m in irrep h
- clone(self: psi4.core.IntVector) psi4.core.IntVector ¶
Clone the vector
- copy(self: psi4.core.IntVector, arg0: psi4.core.ProtoIntVector) None ¶
Copy another vector into this.
- dim(self: psi4.core.IntVector, h: int = 0) int ¶
Returns the number of dimensions per irrep h
- dimpi(self: psi4.core.IntVector) psi4.core.Dimension ¶
Returns the Dimension object
- get(*args, **kwargs)¶
Overloaded function.
get(self: psi4.core.IntVector, m: int) -> int
Returns a single element value located at m
get(self: psi4.core.IntVector, h: int, m: int) -> int
Returns a single element value located at m in irrep h
- get_block(self: psi4.core.IntVector, slice: psi4.core.Slice) psi4.core.IntVector ¶
Get a vector block
- init(self: psi4.core.IntVector, arg0: psi4.core.Dimension) None ¶
Reallocate the data of the Vector. Consider making a new object.
- static iota(arg0: psi4.core.Dimension) psi4.core.IntVector ¶
- nirrep(self: psi4.core.IntVector) int ¶
Returns the number of irreps
- print_out(self: psi4.core.IntVector) None ¶
Prints the vector to the output file
- set(*args, **kwargs)¶
Overloaded function.
set(self: psi4.core.IntVector, m: int, val: int) -> None
Sets a single element value located at m
set(self: psi4.core.IntVector, h: int, m: int, val: int) -> None
Sets a single element value located at m in irrep h
- set_block(self: psi4.core.IntVector, slice: psi4.core.Slice, block: psi4.core.ProtoIntVector) None ¶
Set a vector block
- zero(self: psi4.core.IntVector) None ¶
Zeros the vector