final class SizedVector[N <: Dense, +T] extends AnyRef
Sequantially indexed immutable collection of fixed size in which all elements are of the same type. Uses scala.collection.immutable.Vector as a backing datastructure.
Author:
Harshad Deo
- N
Size of the collection
- T
Element type of the collection
- Since
0.1
- Alphabetic
- By Inheritance
- SizedVector
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from SizedVector[N, T] to any2stringadd[SizedVector[N, T]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
++[N1 <: Dense, U >: T](that: SizedVector[N1, U]): SizedVector[+[N1, N], U]
Appends the argument to this
Appends the argument to this
Author:
Harshad Deo
- N1
Size of the argument
- U
Element type of the argument
- Since
0.1
-
def
+:[U >: T](elem: U): SizedVector[+[N, _1], U]
Prepends the element to this
Prepends the element to this
Author:
Harshad Deo
- U
Type of the element being prepended
- Since
0.1
-
def
->[B](y: B): (SizedVector[N, T], B)
- Implicit
- This member is added by an implicit conversion from SizedVector[N, T] to ArrowAssoc[SizedVector[N, T]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
def
:+[U >: T](elem: U): SizedVector[+[N, _1], U]
Appends an element to this
Appends an element to this
Author:
Harshad Deo
- U
Type of the element being appended
- Since
0.1
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(i: LiteralHash[Int])(implicit ev0: =:=[True, <[ValueHash, N]]): T
Fetches the element at the index
Fetches the element at the index
Author:
Harshad Deo
- Since
0.1
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val backing: Vector[T]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
drop[D <: Dense](i: LiteralHash[Int])(implicit ev0: DenseDiff[N, ValueHash, D], ev1: =:=[True, >[D, _0]], ev2: =:=[True, >[ValueHash, _0]]): SizedVector[D, T]
Drops the first i elements from this
Drops the first i elements from this
Author:
Harshad Deo
- D
Size of the resultant collection
- Since
0.1
-
def
dropRight[D <: Dense](i: LiteralHash[Int])(implicit ev0: DenseDiff[N, ValueHash, D], ev1: =:=[True, >[D, _0]], ev2: =:=[True, >[ValueHash, _0]]): SizedVector[D, T]
Drops the last i elements from this
Drops the last i elements from this
Author:
Harshad Deo
- D
Size of the resultant collection
- Since
0.1
-
def
ensuring(cond: (SizedVector[N, T]) ⇒ Boolean, msg: ⇒ Any): SizedVector[N, T]
- Implicit
- This member is added by an implicit conversion from SizedVector[N, T] to Ensuring[SizedVector[N, T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (SizedVector[N, T]) ⇒ Boolean): SizedVector[N, T]
- Implicit
- This member is added by an implicit conversion from SizedVector[N, T] to Ensuring[SizedVector[N, T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): SizedVector[N, T]
- Implicit
- This member is added by an implicit conversion from SizedVector[N, T] to Ensuring[SizedVector[N, T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): SizedVector[N, T]
- Implicit
- This member is added by an implicit conversion from SizedVector[N, T] to Ensuring[SizedVector[N, T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- SizedVector → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flatten[D <: Dense, U](implicit ev: <:<[T, SizedVector[D, U]]): SizedVector[*[D, N], U]
If the element type of this is a SizedVector, the operation converts this (a SizedVector of SizedVectors) into a simple SizedVector
If the element type of this is a SizedVector, the operation converts this (a SizedVector of SizedVectors) into a simple SizedVector
Author:
Harshad Deo
- D
Size of the element
- U
Element type of the element
- Since
0.1
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from SizedVector[N, T] to StringFormat[SizedVector[N, T]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- SizedVector → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
length(implicit ev: DenseRep[N]): Int
Value level length of this
Value level length of this
Author:
Harshad Deo
- Since
0.1
-
def
map[U](f: (T) ⇒ U): SizedVector[N, U]
Straightforward map operation
Straightforward map operation
Author:
Harshad Deo
- U
Element type of the resultant collection
- Since
0.1
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
reverse: SizedVector[N, T]
Reverses this
Reverses this
Author:
Harshad Deo
- Since
0.1
-
def
slice[D <: Dense](start: LiteralHash[Int], end: LiteralHash[Int])(implicit ev0: =:=[True, <[ValueHash, ValueHash]], ev1: =:=[True, <=[ValueHash, N]], ev2: DenseDiff[ValueHash, ValueHash, D]): SizedVector[D, T]
Subsequence between the two indices
Subsequence between the two indices
Author:
Harshad Deo
- D
Length of the resulting sequence
- Since
0.1
-
def
sortBy[B](f: (T) ⇒ B)(implicit ev: Ordering[B]): SizedVector[N, T]
Sorts according to the transformation function
Sorts according to the transformation function
Author:
Harshad Deo
- B
ELement type according to which the sorting executed
- Since
0.1
-
def
sortWith(lt: (T, T) ⇒ Boolean): SizedVector[N, T]
Sorts according to the comparator
Sorts according to the comparator
Author:
Harshad Deo
- Since
0.1
-
def
sorted[B >: T](implicit ev: Ordering[B]): SizedVector[N, T]
Sorts according to the implicit ordering defined on B
Sorts according to the implicit ordering defined on B
Author:
Harshad Deo
- B
Type on which the sorting is defined
- Since
0.1
-
def
splitAt[D <: Dense](i: LiteralHash[Int])(implicit ev0: =:=[True, <[ValueHash, N]], ev1: =:=[True, >[ValueHash, _0]], ev2: DenseDiff[N, ValueHash, D]): (SizedVector[ValueHash, T], SizedVector[D, T])
Splits the collection at the specified inded
Splits the collection at the specified inded
Author:
Harshad Deo
- D
Size of the subcollection to the right of the split index
- Since
0.1
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
take(i: LiteralHash[Int])(implicit ev0: =:=[True, >[ValueHash, _0]], ev1: =:=[True, <[ValueHash, N]]): SizedVector[ValueHash, T]
Takes the first i elements
Takes the first i elements
Author:
Harshad Deo
- Since
0.1
-
def
takeRight(i: LiteralHash[Int])(implicit ev0: =:=[True, >[ValueHash, _0]], ev1: =:=[True, <[ValueHash, N]]): SizedVector[ValueHash, T]
Takes the last i elements
Takes the last i elements
Author:
Harshad Deo
- Since
0.1
-
def
toString(): String
- Definition Classes
- SizedVector → AnyRef → Any
-
def
unzip[U, V](implicit ev: <:<[T, (U, V)]): (SizedVector[N, U], SizedVector[N, V])
Unzips the collection, if the element type is a Tuple2
Unzips the collection, if the element type is a Tuple2
Author:
Harshad Deo
- U
Element type of the first collection produced by unzipping
- V
Element type of the second collection produced by unzipping
- Since
0.1
-
def
updated[B >: T](i: LiteralHash[Int], b: B)(implicit ev: =:=[True, <[ValueHash, N]]): SizedVector[N, B]
Updates the element at the index
Updates the element at the index
Author:
Harshad Deo
- B
Type of the replacement element
- Since
0.1
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
zip[U, N1 <: Dense](that: SizedVector[N1, U]): SizedVector[Min[N, N1], (T, U)]
Zips with the other SizedVector.
Zips with the other SizedVector. The size of the resultant collection is equal to the minimum of the sizes of the input collections
Author:
Harshad Deo
- U
Element type of the argument
- N1
Size of the argument
- Since
0.1
-
def
→[B](y: B): (SizedVector[N, T], B)
- Implicit
- This member is added by an implicit conversion from SizedVector[N, T] to ArrowAssoc[SizedVector[N, T]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc